How do I do an exact whois search?

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