4 ms·
Why not just... whois example.com Or is this also intended to be a domain discovery tool?
by ryannevius 9y ago
Why not just...
whois example.com
Or is this also intended to be a domain discovery tool?
- arca_vorago 9y agoIn which case why not 'dig' or 'nslookup' too?
- greyface- 9y agoThere is one odd case where asking DNS won't work accurately: if a domain is registered but has no nameservers.
- toast0 9y agoAlmost 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.
- anh79 9y agoCan 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#file-whoisvn-sh-L70 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
- teddyh 9y agoLook at, for example, "nmu360.se". It is registered, but has no name servers configured.
- feelin_googley 9y agoecho nmu360.se|exec nc -vvn 91.226.37.83 43
- marcosdumay 9y agoWhois 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).
- teddyh 9y agoLet me guess: Your ISP is injecting fake DNS responses.
- anh79 9y agoVery good example. Thanks a lot.
- _jomo 9y agoIsn't there always an SOA record?
- teddyh 9y agoNo. If there are no name servers, there isn’t a zone, and if there isn’t a zone, there is no SOA record.
- anh79 9y agowhois may not work if you don't have correct configuration (e.g, whois server for some special domains .info, .social, ...)
- teddyh 9y agoUse a proper whois command which has all this configured. Note: may be difficult to achieve on macOS.