2 networks, but name resolution fully works only for one network

I have a Windows 2012 Server with DNS configured, on vmware workstation.

Name Server is “ad.nuglab.local”, with “Host (A)” record of 172.16.202.109 and 192.168.1.111

On my host PC, with dns server set to 172.16.202.109, I can ping/nslookup/browse any hosts configured on Windows Server, like “esxi-1” that points to 192.168.1.101.

> nslookup esxi-1.nuglab.local
Server:  ad.nuglab.local
Address:  172.16.202.109

Name:    esxi-1.nuglab.local
Address:  192.168.1.101

> ping -a 192.168.1.101

Pinging esxi-1.nuglab.local [192.168.1.101] with 32 bytes of data:
Reply from 192.168.1.101: bytes=32 time<1ms TTL=64
Reply from 192.168.1.101: bytes=32 time<1ms TTL=64

Browser :
https://esxi-1.nuglab.local -> Resolved.

But, if on my host PC, I change the dns server to 192.168.1.111, name resolution does not fully works. Here’s what I get :

I first do ipconfig /flushdns

> nslookup esxi-1.nuglab.local
Server:  ad.nuglab.local
Address:  192.168.1.111

DNS request timed out.
    timeout was 2 seconds.
DNS request timed out.
    timeout was 2 seconds.
Name:    esxi-1.nuglab.local
Address:  192.168.1.101

> ping -a 192.168.1.101

Pinging 192.168.1.101 with 32 bytes of data:
Reply from 192.168.1.101: bytes=32 time<1ms TTL=64
Reply from 192.168.1.101: bytes=32 time<1ms TTL=64

Browser :
https://esxi-1.nuglab.local -> Unresolved.

So, nslookup found “192.168.1.101” after two “DNS request timed out”.
And ping was not able to resolve the name, but it could ping the resource.

What can explain why it does not work when I choose my dns address to be 192.168.1.111 ?

Answer

AD DNS Server with 2 nics is not recommended, look at this: https://www.petri.com/configure-dns-on-domain-controller-two-ip-addresses

Attribution
Source : Link , Question Author : trogne , Answer Author : Gustavo Fast

Leave a Comment