Working on CentOS7 - after entering non-existing domain:

# ping dfgsdfgsdfsdf.sd

The answer is (mail.xsistema.lt is local domain, machine name):

PING dfgsdfgsdfsdf.sd.xsistema.lt ( 56(84) bytes of data.
64 bytes from mail.xsistema.lt ( icmp_seq=1 ttl=64 time=0.037 ms
64 bytes from mail.xsistema.lt ( icmp_seq=2 ttl=64 time=0.038 ms
64 bytes from mail.xsistema.lt ( icmp_seq=3 ttl=64 time=0.038 ms

How can I fix this?


You have an option in /etc/resolv.conf that adds a domain (xsistema.lt) automatically to any name that does not exist.

Since dfgsdfgsdfsdf.sd does not exist, it gets in fact converted to dfgsdfgsdfsdf.sd.xsistema.lt.

And this resolves for any name because there is a DNS wildcard in the zone:

$ dig '*.xsistema.lt' +short

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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