<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 (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.<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). 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.<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. (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. <br>
/etc/hosts<br>
127.0.0.1 localhost<br>
192.168.1.112 laptop<br>
plus all other local machines<br>
<br>
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.<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>