Terminal Tip: using whois

All you have to do is open Terminal.app (/Applications/Utilities/) and type in "whois" and space followed by a URL. For instance, the following command would give you the whois information for tuaw.com: whois tuaw.com.
You can do this for almost any website; however, some domain names use some form of a hiding service from their registrar that allows them to hide their contact information. Be forewarned that you shouldn't use information like this to stalk people!
Please note that if you have Terminal-itis, or are scared of the Terminal, you can use Apple's Network Utility in Mac OS X to do a whois query. Just open Network Utility.app (in the /Applications/Utilities/) and click the "whois" tab. From there you can enter a URL and do a query, all within a pretty "Aqua-licious" user interface.
Share
Categories
Whois or "Who is," is a way to query for contact information (or domain name ownership information) about the person or company in control...
Add a Comment
Whois from terminal is SO MUCH better then using Network Utility!!! So much faster...
I am new to terminal, but am realllly loving it lately!
Coming tomorrow! Double-clicking to launch an application that's not in your Dock!
March 13 2008 at 11:24 PM Report abuse Permalink rate up rate down ReplyDoes anyone know of a way to search whois/registration info for certain fields? For example, finding all domain registered with a specific zip code or email address or between dates?
March 13 2008 at 3:04 PM Report abuse Permalink rate up rate down ReplyYou can do a whois domain.com | grep -i entersearchfield or awk if you're really fancy...
March 14 2008 at 12:05 PM Report abuse Permalink rate up rate down ReplyThanks Brian. Although, what I'd really like is some sort of database information. Meaning, if I enter a search term (such as a zip code 90210), a list of registered domains with the search term would be returned to me. Suggestions? Thanks much.
March 14 2008 at 12:13 PM Report abuse Permalink rate up rate down ReplyI use this Applescript to send an IP to dnsstuff.com from the clipboard which returns the whois info in a Safari window (or your default browser):
set front_app to (path to «constant afdregfp» as Unicode text)
set name_ to name of (info for (path to «constant afdregfp»))
tell application front_app
activate
tell application "System Events"
set this_text to (get the clipboard) as string
open location "http://www.dnsstuff.com/tools/whois.ch?ip=" & this_text
end tell
end tell
All you have to do is open Terminal.app and type in "whois" and space followed by a URL.
..
You can do this for almost any website; ...
N.B.: This method will neither work for URLs nor websites. You can only use domain names.
~user>> whois http://www.tuaw.com
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
No match for "HTTP://WWW.TUAW.COM".
That is a good Terminal tip. It's faster than using the great Network Utility.
However, I still find GoDaddy.com to give the more info. Though,i would never use them for anything else.
Why bother to use the Terminal? Mac OS X comes with the "Network Utility" which has:
* Informations about Network interfaces
* Netstat
* AppleTalk
* ping
* Lookup
* Traceroute
* Whois
* Finger
* Port scan
http://en.wikipedia.org/wiki/Network_Utility
oops I should have read the whole article ;)
March 13 2008 at 10:33 AM Report abuse Permalink rate up rate down Replywow tuaw! the Chrysler building!
March 13 2008 at 10:10 AM Report abuse Permalink rate up rate down ReplyYou mean /Applications/Utilities/
March 13 2008 at 9:52 AM Report abuse Permalink rate up rate down ReplyThe problem is spammers got to the whois information a long time ago. I know my site has a domain privacy service operating on it and many other people's as well.
I'm somewhat annoyed I have to disable a section of the privacy as I'm going to requesting a registrar change pretty soon.
Hot Apps on TUAW
Deals of the Day
more deals- Verizon Leather Sleeve for Tablets for $4 + free shipping
- Wicked Jaw Breaker Noise-Isolating In-Ear Headphones for $6 + free shipping
- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



14 Comments