Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I execute the following whois command on my Ubuntu server, I get all sorts of other domains which contain google.com in the name, but clearly aren't owned by google. As this appears to be some sort of spam, I won't paste the output here. I'd like to check for exactly the name I typed in. I thought the following would work, but it doesn't. What is the proper way to do an exact match?

whois -Hx google.com

Update: I found a work around by using a Ruby whois script: http://www.ruby-whois.org/

share|improve this question

1 Answer 1

up vote 6 down vote accepted

The "spam" you're seeing is the COM registry whois server finding partial matches on host (nameserver) entries as well as domain names.

whois 'domain google.com' will avoid all the host record matches by limiting the results to domain objects only.

This isn't a client setting, but a whois server function.

whois -h whois.internic.net help for more details

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.