Ok, this is true. But my question is different, i think.<br>If in /etc/hosts are present my hosts, with expandhost option in my dnsmasq config, resolv by name work properly. <br>But I don&#39;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?<br>
<br>LP<br><br><br><br><div class="gmail_quote">On Thu, Dec 17, 2009 at 11:02 PM, Rance Hall <span dir="ltr">&lt;<a href="mailto:ranceh@gmail.com">ranceh@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Thu, Dec 17, 2009 at 3:51 PM, Luca Postregna<br>
&lt;<a href="mailto:luca.postregna@gmail.com">luca.postregna@gmail.com</a>&gt; wrote:<br>
&gt; Is there a way to resolv by name the hosts of my network without modify<br>
&gt; /etc/hosts on the server or in the client?<br>
&gt; On the server in dhcp.leased I can read that my client send the hostname, is<br>
&gt; not that enough?<br>
&gt;<br>
&gt; Thanks, Luca.<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; <a href="http://www.infis.units.it/%7Elucapost/" target="_blank">http://www.infis.units.it/~lucapost/</a><br>
&gt; Luca Postregna<br>
<br>
</div></div>The clients that get dhcp addresses should already be able to resolv<br>
by name the other dhcp clients.  If this is not true, you have a<br>
problem and you need to fix that first.<br>
<br>
In order for the clients to resolv by name static ip machines, the<br>
server needs to know about them some way.<br>
<br>
typically this is with the /etc/hosts file, but IIRC dnsmasq has the<br>
ability to specify an additional/alternate /etc/hosts file.  this<br>
other file needs to be a properly formatted /etc/hosts file, it can<br>
just have another name.<br>
<br>
This should get your clients resolving the network correctly.<br>
<br>
The next thing you need to know about is if you want the dhcp server<br>
to resolv local names the same way the clients do.<br>
<br>
There is a way to configure this also.<br>
<br>
specify in your servers /etc/resolv.conf that the server should look<br>
at itself for name resolution, and then specify a second proper<br>
/etc/resolv.conf file for dnsmasq to use to get the rest of the net.<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.infis.units.it/~lucapost/">http://www.infis.units.it/~lucapost/</a><br>Luca Postregna<br><br>