[Dnsmasq-discuss] unable to resolv hosts by name in my local network

Luca Postregna luca.postregna at gmail.com
Fri Dec 18 09:31:59 GMT 2009


Ok, this is true. But my question is different, i think.
If in /etc/hosts are present my hosts, with expandhost option in my dnsmasq
config, resolv by name work properly.
But I don't want to specify anything in /etc/hosts. I think that dnsmasq,
when one client get address, obtain all info (dhcp.leases) to permit itself
and other clients to resolv by name the new client, is it true?

LP



On Thu, Dec 17, 2009 at 11:02 PM, Rance Hall <ranceh at gmail.com> wrote:

> On Thu, Dec 17, 2009 at 3:51 PM, Luca Postregna
> <luca.postregna at gmail.com> wrote:
> > Is there a way to resolv by name the hosts of my network without modify
> > /etc/hosts on the server or in the client?
> > On the server in dhcp.leased I can read that my client send the hostname,
> is
> > not that enough?
> >
> > Thanks, Luca.
> >
> >
> > --
> > http://www.infis.units.it/~lucapost/<http://www.infis.units.it/%7Elucapost/>
> > Luca Postregna
>
> The clients that get dhcp addresses should already be able to resolv
> by name the other dhcp clients.  If this is not true, you have a
> problem and you need to fix that first.
>
> In order for the clients to resolv by name static ip machines, the
> server needs to know about them some way.
>
> typically this is with the /etc/hosts file, but IIRC dnsmasq has the
> ability to specify an additional/alternate /etc/hosts file.  this
> other file needs to be a properly formatted /etc/hosts file, it can
> just have another name.
>
> This should get your clients resolving the network correctly.
>
> The next thing you need to know about is if you want the dhcp server
> to resolv local names the same way the clients do.
>
> There is a way to configure this also.
>
> specify in your servers /etc/resolv.conf that the server should look
> at itself for name resolution, and then specify a second proper
> /etc/resolv.conf file for dnsmasq to use to get the rest of the net.
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>



-- 
http://www.infis.units.it/~lucapost/
Luca Postregna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20091218/17b58ea9/attachment.htm 


More information about the Dnsmasq-discuss mailing list