by blfr · 11y ago · 0 comments
For Google.com, I can get an A record (IP address)
$ dig +short google.com a
216.58.208.238
but I can also get a domain name for that IP $ dig -x 216.58.208.238 +short
par10s22-in-f14.1e100.net.
par10s22-in-f14.1e100.net.
Google uses a service domain 1e100.net for their machines.Although maybe OP only means the hostname in the banner message. I grepped my mail logs for hostnames from Vietnam and couldn't find any IPs that would resolve back to localhost.
EDIT: 'nanofortnight https://news.ycombinator.com/item?id=9068054 found a range of addresses that do.
$ dig +short -x 123.26.2.1
localhost.A reverse dns lookup actually just does a lookup of {the ip address with octets reversed}.in-addr.arpa:
> host 216.58.208.238
238.208.58.216.in-addr.arpa domain name pointer par10s22-in-f14.1e100.net.
You can actually look that up directly too: > dig +short ptr 238.208.58.216.in-addr.arpa
par10s22-in-f14.1e100.net.
When an isp gets a ip allocation, they specify the nameservers to use, and are responsible for that "subdomain" of the in-addr.arpa domain. If you trace the full resolve, it first goes to the root .in-addr.arpa servers, then arin.net nameserver, then finally you end up at: ;; AUTHORITY SECTION:
208.58.216.in-addr.arpa. 86400 IN NS ns3.google.com.
which will return the actual ptr record.https://www.shodan.io/search?query=hostname%3Alocalhost
That gives you a list of IPs that you can check for yourself are affected by the issue.