On Mon, Aug 06, 2007 at 06:50:21PM +0100, Adam Hardy wrote: > Douglas Allan Tutty on 06/08/07 14:27, wrote: > >On Mon, Aug 06, 2007 at 12:39:56PM +0100, Adam Hardy wrote: > >>I installed dnsmasq to run DNS and DHCP servers on my little home network > >>of 4 PCs and a couple of laptops, and everything was going fine, internet > >>browsing, ssh, ftp by IP address etc. > >> > >>Now I am trying to get DNS to work for local machines but it won't > >>co-operate. I spent the last couple of hours pouring over HOWTOs and FAQs > >>trying to work out the problem but I'm stuck with a few errors messages > >>which I suspect point to something totally obvious to those in the know. > > > >Please send us your /etc/hosts file. Every box needs a minimal > >/etc/hosts file with at least its own hostname (though I'v never used > >DHCP). The box running dnsmasq should have all the hosts on your > >network listed in /etc/hosts for dnsmasq to read. > > [EMAIL PROTECTED]:~$ cat /etc/hosts > 127.0.0.1 localhost localhost.localdomain > > # The following lines are desirable for IPv6 capable hosts > ::1 ip6-localhost ip6-loopback > fe00::0 ip6-localnet > ff00::0 ip6-mcastprefix > ff02::1 ip6-allnodes > ff02::2 ip6-allrouters > ff02::3 ip6-allhosts > > So I should put gondor in there on the same line as the localhost? > > And on the dnsmasq box it's the same. I can enter the IP address of the > box's NIC on the internal network into /etc/hosts because it's fixed, but > all the DHCP clients? >
You should only have to put your hosts in the /etc/hosts file on the dnsmasq box. No, you should not touch the 127.0.0.1 line. They should go on their own line, one per IP. I don't know about the DHCP clients. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]