[Dnsmasq-discuss] basic host name problem

Adam Hardy adam.ant at cyberspaceroad.com
Mon Jan 25 18:20:05 GMT 2010


Hi,

I've got a gateway server running dnsmasq for dhcp on my LAN and I've got a 
couple of problems with the host names of the dhcp clients.

The first is a Belkin print server which picks up its ip address and passes thro 
its hostname MFD8FDC7. This appears in dnsmasq.leases - so I should be able to 
communicate with it now, right?

There must be something missing from my dnsmasq config because I see now that 
any attempt to use the host names of dhcp clients from the gateway server fail 
with " unknown host ...". I'm on debian stable if that makes any difference.

I've got 127.0.0.1 in my /etc/hosts

127.0.0.1	localhost isengard.localdomain isengard
192.168.0.2     isengard.localdomain

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

along with all that ipv6 stuff, which someone somewhere recommended at some 
point but I don't recall the details now (should I ditch it?)

Plus this is the settings in dnsmasq.conf:

adam at isengard:~$ decomment.sh /etc/dnsmasq.conf
domain-needed
bogus-priv
filterwin2k
server=/localdomain/127.0.0.1
local=/localdomain/
expand-hosts
domain=localdomain
dhcp-range=192.168.0.3,192.168.0.254
dhcp-option=option:router,192.168.0.2
dhcp-option=option:mtu,1500

Any inspiration gratefully received.



More information about the Dnsmasq-discuss mailing list