I have the following problem:
if I ping a non existent domain name I get a reply from an IP address
# ping nosuchdomain.common
PING nosuchdomain.common.myrealdomain.com (192.168.1.1) 56(84) bytes of data.
64 bytes from myrealdomain.com (192.168.1.1): icmp_req=1 ttl=59 time=0.184 ms
Anyway, what I would want to happen would be to have the resolver work like this
#ping nosuchdomain.common
ping: unknown host nosuchdomain.common
My /etc/resolv.conf looks like this now:
# nameserver config
nameserver 8.8.8.8
Any idea where I should look to make the resolver return "unknown host"?
192.168
addresses in your public DNS; that's possible, but unlikely, which makes me wonder which of the above data can be relied on. Please strongly consider de-obfuscating your question.nscd
?grep hosts /etc/nsswitch.conf
andgrep caomdas /etc/hosts
?