Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Trying to resolve:

nslookup testserverinlocaldns



** server can't find testserverinlocaldns: NXDOMAIN

After 10 seconds everything is ok:

nslookup testserverinlocaldns



Name: testserverinlocaldns.localnet


And the same thing again and again. Sometimes it resolves, sometimes not. When I set resolv.conf to local DNS servers manually - everything is ok. But after reboot it gets back to again.

share|improve this question

1 Answer 1

I have this inside my internal network, and I solved it by disabling the local forwarding nameserver controlled by NetworkManager (dnsmasq).

To do that, you need to edit /etc/NetworkManager/NetworkManager.conf and comment out the “dns=dnsmasq” line in the "[main]" section.

Open a terminal, and run

sudo nano /etc/NetworkManager/NetworkManager.conf

Then make sure that the line


is commented out like this:


Now, restart network-manager with the following command, and everything should work properly.

sudo restart network-manager

share|improve this answer
it works thatnks! – kay May 4 '12 at 13:27
Yes, it worked for me as well! kay, since it worked for you I'd suggest doing him the courtesy of accepting this answer. – memilanuk Jun 1 '12 at 4:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.