Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to set up dnsmasq as a dns server on a virtual machine running Debian. I can successfully run nslookup from another computer: nslookup facebook.com and the answer I get is:


Non-authoritative answer:
Name:    facebook.com

Now when I do a lookup for a local address such as nslookup router.domain.com and the answer I get is ;; connection timed out; no servers could be reached

(However on the actual dns server, running a traceroute uses "router.domain.com" rather than its IP address)

My dnsmasq.conf contains:


and my resolv.conf contains:

search domain.com

What might the problem be?


share|improve this question

2 Answers 2

So, the line in your config file:


tells dnsmasq to ignore the contents of your resolv.conf file. Perhaps you should comment that line out?

There's a pretty good article at: http://wiki.debian.org/HowTo/dnsmasq#Local_Caching that describes this.

share|improve this answer
I changed that, but still have the same problems as above. –  cheechm Mar 26 '13 at 1:33
up vote 0 down vote accepted

I left BIND enabled! Sorted now.

share|improve this answer

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.