0

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 (192.168.0.55) 56(84) bytes of data.
64 bytes from mail.xsistema.lt (192.168.0.55): icmp_seq=1 ttl=64 time=0.037 ms
64 bytes from mail.xsistema.lt (192.168.0.55): icmp_seq=2 ttl=64 time=0.038 ms
64 bytes from mail.xsistema.lt (192.168.0.55): icmp_seq=3 ttl=64 time=0.038 ms

How can I fix this?

2

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
88.119.185.129

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.