I found out strange duplicate domain name in the DNS queries during tcpdump
capturing on my RedHat server. It did not do any impact on my DNS names resolving.
But it's not clear why my server sends such request in DNS query ==> my.domainspec.com.domainspec.com.domainspec.com
. In general it should be
just my.domainspec.com
info from tcpdump:
12:17:28.431208 IP (tos 0x0, ttl 64, id 57779, offset 0, flags [DF], proto UDP (17), length 97)
my.domainspec.com.33953 > ns1.entry.com.domain: [bad udp cksum 0xcb8a -> 0x6e04!] 63367+ A? my.domainspec.com.domainspec.com.domainspec.com. (69)`
`12:17:28.431718 IP (tos 0x0, ttl 64, id 61601, offset 0, flags [none], proto UDP (17), length 148)
ns1.entry.com.domain > my.domainspec.com.33953: [udp sum ok] 63367 NXDomain* q: A? my.domainspec.com.domainspec.com.domainspec.com. 0/1/0 ns: domainspec.com. SOA ns1.entry.com. postmaster.domainspec.com. 2018012732 600 300 2592000 900 (120)
info from nsswitch.conf
:
grep "hosts" /etc/nsswitch.conf
#hosts: db files nisplus nis dns
hosts: files dns myhostname
info from /etc/hosts
:
193.48.203.195 my.domainspec.com
info from /etc/resolv.conf
:
# Generated by NetworkManager
search domainspec.com
nameserver 8.8.8.8
Please note. I've used fake domain names and IPs for the example.
Could someone explain what the reason for the duplicate domain name in DNS query is? Any help is really appreciated.
tcpdump
andresolv.conf
, and evennameserver
do not match.example.com
, or.example
TLD next time.