[Dnsmasq-discuss] basic host name problem

richardvoigt at gmail.com richardvoigt at gmail.com
Mon Jan 25 21:14:52 GMT 2010


On Mon, Jan 25, 2010 at 12:20 PM, Adam Hardy
<adam.ant at cyberspaceroad.com> wrote:
> 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

Sounds like your gateway is not using dnsmasq for lookups.  dnsmasq
tells dhcp clients to use its services, but the gateway you will have
to manually configure in /etc/resolv.conf to send requests to the
local dnsmasq process.


>
> 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.
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>



More information about the Dnsmasq-discuss mailing list