I can ping any word or domain in CentOS 6 and I get response from the same IP, if that pinged domain doesn't exist in real world.
e.g. ping xxxxxx
How can I fix this? I want to have normal behavior reporting "unknown host".
I can ping any word or domain in CentOS 6 and I get response from the same IP, if that pinged domain doesn't exist in real world.
e.g. ping xxxxxx
How can I fix this? I want to have normal behavior reporting "unknown host".
In your DNS server, a wild card entry is set for your domain - like *.domain.com
. In addition to this, if you have the search domain set in /etc/resolv.conf
- any thing you ping will have the search domain appended to it. To make a quick test, simply comment out all entries in your /etc/resolv.conf file and replace it with the following google dns server -
nameserver 8.8.8.8
And see if that resolves the problem. Otherwise you will have to change the dns zone entries in your main dns server, which is unlikely, unless you have control over it.
In general the output of ping depends on 2 things:
Too many variables here to give you any more detailed answers.