Command-line gems: whois

Jul 19, 04:11 pm

Just a quickie command-line gem this time around, but one that’s extremely useful if you’re involved in building internet-facing servers.

The whois command does two things. Feed it a domain name and it’ll report all the DNS record details about that domain. It’s useful to add the -H command switch, so that all the copyright text some domain registrars add is chopped off:

whois -H apress.com

Feed it an IP address and it’ll report all the details about the address and the range it belongs to, if applicable:

whois 192.168.1.1

As always, you should take a look at the whois man page to learn more about it.


    1. Angela Mozart says:

      Is it possible to do a WHOIS search by registrant instead of by domain?




Add your comments

Please keep your comments relevant to this blog entry: inappropriate or purely promotional comments may be removed. To add hyperlink, please follow this example: "your link text":http://your.link.url