In my network I have:
- mikrotik router (
10.0.0.1
) with static DNS entries for myhost.mydomain.com
-> 10.0.0.4
- adguard server (
10.0.0.128
) that uses 10.0.0.1
as upstream DNS
- DHCP gives
10.0.0.128
as primary DNS.
I have really weird situation with DNS resolution on ubuntu machines:
[21:22:18][root@ubuntu]:~# nslookup myhost.mydomain.com
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: myhost.mydomain.com
Address: 10.0.0.4
** server can't find myhost.mydomain.com: NXDOMAIN
So - the name resolved into 10.0.0.4, but somehow it still says NXDOMAIN
- what's up with that?
What's even weirder, when I logged in to my domain registrar and added a CNAME
entry for *.mydomain.com
that points to mydomain.com
(which resolves to IP of my hosting provider) - here's what I see:
[21:58:04][root@ubuntu]:~# nslookup myhost.mydomain.com
Server: 127.0.0.53
Address: 127.0.0.53#53
Non-authoritative answer:
Name: myhost.mydomain.com
Address: 10.0.0.4
myhost.mydomain.com canonical name = mydomain.com.
However, from my daily driver (macOS) I'm not getting this issue:
[20:46:57][shalak@shalak-mac]:~$ nslookup myhost.mydomain.com
Server: 10.0.0.128
Address: 10.0.0.128#53
Non-authoritative answer:
Name: myhost.mydomain.com
Address: 10.0.0.4
What's going on here?