<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
I set up dnsmasq on a Ubuntu server and it appears to be working locally&nbsp; (will resolve hostnames, using dig I see that the machine is caching properly).&nbsp; However, I'm not getting the response that I expected from other machines on the LAN.&nbsp; 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.&nbsp; (gerbil is a local machine listed in the dnsmasq server's /etc/hosts file.)&nbsp; The host command didn't work either until I commented out the listen-address=127.0.0.1 line in /etc/dnsmasq.conf.<br><br>root@pbx:~ $ ping gerbil <br>ping: unknown host gerbil <br>root@pbx:~ $ host gerbil <br>gerbil has address 192.168.1.112<br>root@pbx:~ $<br><br>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).&nbsp; It also wouldn't resolve the names when I put them into a Firefox browser on gerbil.&nbsp; gerbil is a win XP machine and I set the DNS server in the Network control panel.<br><br>My dnsmasq.conf file only has two lines uncommented:<br>
server=/localnet/192.168.0.1<br>
local=/localnet/<br>
<br>
My dnsmasq server is pointing to my ISP's DNS servers in the
/etc/resolv.conf file.&nbsp; (127.0.0.1 is the first nameserver listed).&nbsp;
The other linux boxes point this file to the dsnmasq server IP.&nbsp; The
Windows machines point their DNS server to the dnsmasq server IP.&nbsp; 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. <br>
/etc/hosts<br>
127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; localhost<br>
192.168.1.112&nbsp;&nbsp; laptop<br>
plus all other local machines<br>
<br>
I hope this is a simple fix.&nbsp; dnsmasq is supposed to be easy to setup and I've reviewed several how to's to try and find the problem.&nbsp; I would appreciate any pointers and suggestions on how to troubleshoot this issue.&nbsp; 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.&nbsp; I don't want to update all the hosts file anytime the network changes.<br><br>Thanks in advance for any pointers.<br><br><br><br><br><br /><hr />Need to know now? Get instant answers with Windows Live Messenger. <a href='http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_messenger_072008' target='_new'>IM on your terms.</a></body>
</html>