Saturday, September 13, 2014

domain name system - Unable to resolve LAN items via DNS



I have this wierd issue with my DNS. If I assign a static ip to my machines (laptop or desktop) I am unable to resolve local servers, PCs, devices etc. via DNS even using NSLOOKUP (e.g nslookup server01) I get the error



*** nypdc.us.mycompany.local can't find server01: Server failed



but if I allow the machines to take IP addresses via DHCP everything works fine.




Any ideas where to look? I even tried manually puting the INTERNAL DNS IP from PDC.



Edit ~ I am also able to access the internet so the DNS is working for external items.



Thanks


Answer



Your DHCP server is probably also handing out your domain's DNS suffix. Can you do nslookup server01.us.mycompany.local (or server01.mycompany.local not sure of your dns setup)?



If you do an ipconfig /all you'll see an entry labeled "Primary DNS Suffix" while you have a DHCP address to see what it should be set to. Alternately you can go to your TCP/IP properties and click "advanced" then go to the DNS tab, it will show you what your DNS suffixes should be if you do that while you have an IP via DHCP, then you can replicate those setting manually when you give yourself a static IP.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...