Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

How do I prevent the following website and similar tools finding subdomains of domains in my server?

https://pentest-tools.com/reconnaissance/find-subdomains-of-domain

share|improve this question

2 Answers 2

You can add a wildcard DNS record for your domain. Using that, every possible subdomain points at your server. Then your webserver can choose which subdomains have content and which subdomains redirect.

The sites that use DNS records to find subdomains won't be able to distinguish the ones that are used from the ones that are not.

share|improve this answer
    
Oh, that's a great work around! +1 –  bybe Aug 2 at 8:23

You can't due to the nature how sub domains work. When adding a sub domain you are adding public records to the main domain and anyone can do a NS lookup or similar to reveal additional information regarding the domain.

If you want it private then use an internal domain over a VPN or use the IP address, or better yet just ensure your sub domain is secure and not worry.

share|improve this answer
    
AFAIK, finding a list of arbitrary subdomains is not necessarily as trivial as doing a DNS lookup, unless the server responds to AXFR (zone transfer) requests (which most don't)? –  w3d Aug 2 at 11:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.