During experimentation with the gobuster tool, and trying to find the subdomains matches of a domain (let's call that testdomain.com), I got some strange results and I explain.
The command used was $ gobuster dns -d testdomain.com -w mywordlist.txt -o subdomain_results.txt
which gave me a list of subdomains (like example1.testdomain.com, example2.testdomain.com, etc).
The strange thing I noticed is that after trying to ping the list of subdomains (in order to get their IP addresses fairly easy and quick), there were many subdomains that seemed to resolve to bogus IPs which belonged to the 10.0.0.0/8 network. Also note that there was 100% packet loss for those subdomains.
Trying to resolve those subdomains through a DNS lookup utility (i.e. dig), but without specifying a specific nameserver for queries (@server), there was the same resolved address again. Also searching about those subdomains on the internet gave me nothing, probably because they don't actually exist I suppose.
My ping output looked like the following:
ping example.testdomain.com
PING example.testdomain.com (10.8.60.103) 56(84) bytes of data.
^C
--- example.testdomain.com ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4103ms
Also the answer section from dig output is the following:
;; ANSWER SECTION:
example.testdomain.com. 600 IN A 10.8.60.103
;; Query time: 80 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Thu Sep 23 14:11:56 UTC 2021
;; MSG SIZE rcvd: 62
Why am I getting those IPs in the resolution of subdomains (that do not exist) ? I suspect it all has to do with this, which also has some very good references, but what I cannot understand is how and why is the DNS resolution happening for those IPs.
What is a possible case scenario that explains this observed bahaviour?