Hacker News new | past | comments | ask | show | jobs | submit login

Why not just...

    whois example.com
Or is this also intended to be a domain discovery tool?



In which case why not 'dig' or 'nslookup' too?


There is one odd case where asking DNS won't work accurately: if a domain is registered but has no nameservers.


Can you give some example? I have tried some registrars and if you don't provide some NS information, the default NS information is used.

I have a tool in the past https://gist.github.com/icy/b30893cecc8ec657317ba93831b0fd4a... it works fine as I experience. The tool has option `--all` to check by using both google/open dns. E.g,

  $ whoisvn google-is-good.com --all
      opendns.org:   google-is-good.com   available
        googledns:   google-is-good.com   available
  
  $ whoisvn google-is-bad.com --all
      opendns.org:    google-is-bad.com   available
        googledns:    google-is-bad.com   available


Look at, for example, "nmu360.se". It is registered, but has no name servers configured.


Whois says it has no name server (what a weird format that of .se), but digg finds an A record with 92.242.140.20 (what seems to be a register IP).


Let me guess: Your ISP is injecting fake DNS responses.


   echo nmu360.se|exec nc -vvn 91.226.37.83 43


Very good example. Thanks a lot.


Almost always, you need to provide nameservers when you register a domain. host -t NS example.org should return something, even if the listed nameservers don't exist, don't respond for that domain, or return NXDomain.


Isn't there always an SOA record?


No. If there are no name servers, there isn’t a zone, and if there isn’t a zone, there is no SOA record.


whois may not work if you don't have correct configuration (e.g, whois server for some special domains .info, .social, ...)


Use a proper whois command which has all this configured. Note: may be difficult to achieve on macOS.


It's even hard on Linux machine. How do you know all whois servers for different top level domains? for .info, for .social, for .in, bla bla. In 2016 it's so painful to set up correct whois monitoring at my company . (May be it's a lot better now.)


apt install whois




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: