dnsmasq

Associate
Joined
16 Jan 2008
Posts
2,350
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 10.0.11.2 and the answer I get is:
Code:
    Server:        10.0.11.2
    Address:       10.0.11.2#53
    
    Non-authoritative answer:
    Name:    facebook.com
    Address: 173.252.110.27

Now when I do a lookup for a local address such as nslookup router.domain.com 10.0.11.2 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:
Code:
    address=/router.domain.com/10.0.11.2
    no-resolv
    server=8.8.8.8
    server=8.8.4.4
and my resolv.conf contains:
Code:
    nameserver 127.0.0.1
    search domain.com
What might the problem be?

Cheers
 
I realised that I needed to comment out the "no-resolv" part otherwise dnsmasq wouldn't locally cache. But it still doesn't work.
 
Worked it out. Although I had stopped the BIND service the firs time, I forgot to disable it on boot. Works perfectly now. Thanks!
 
Back
Top Bottom