[Dnsmasq-discuss] dnsmasq not answering other LAN computers
rtylerdunn at hotmail.com
Wed Jul 2 05:12:42 BST 2008
I set up dnsmasq on a Ubuntu server and it appears to be working locally (will resolve hostnames, using dig I see that the machine is caching properly). However, I'm not getting the response that I expected from other machines on the LAN. From another Linux box (Centos), I put the dnsmasq IP address in the /etc/resolv.conf file, but a ping command returns an error and a host command works properly. (gerbil is a local machine listed in the dnsmasq server's /etc/hosts file.) The host command didn't work either until I commented out the listen-address=127.0.0.1 line in /etc/dnsmasq.conf.
root at pbx:~ $ ping gerbil
ping: unknown host gerbil
root at pbx:~ $ host gerbil
gerbil has address 192.168.1.112
root at pbx:~ $
Also, when I set the DNS server on gerbil to the dnsmasq server's IP address (192.168.1.121), it wouldn't return anything when I pinged gerbil (or www.yahoo.com for that matter). It also wouldn't resolve the names when I put them into a Firefox browser on gerbil. gerbil is a win XP machine and I set the DNS server in the Network control panel.
My dnsmasq.conf file only has two lines uncommented:
My dnsmasq server is pointing to my ISP's DNS servers in the
/etc/resolv.conf file. (127.0.0.1 is the first nameserver listed).
The other linux boxes point this file to the dsnmasq server IP. The
Windows machines point their DNS server to the dnsmasq server IP. The
/etc/hosts file on the dnsmasq server has a listing for each local
machine and the nickname that I want to use to access it.
plus all other local machines
I hope this is a simple fix. dnsmasq is supposed to be easy to setup and I've reviewed several how to's to try and find the problem. I would appreciate any pointers and suggestions on how to troubleshoot this issue. I would like to get it fixed so that I don't have to type the IP address when I access local machines on the LAN. I don't want to update all the hosts file anytime the network changes.
Thanks in advance for any pointers.
Need to know now? Get instant answers with Windows Live Messenger.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dnsmasq-discuss