<br><br><div class="gmail_quote">On Wed, Oct 13, 2010 at 3:43 PM, Santiago Zarate <span dir="ltr"><<a href="mailto:santiago@zarate.net.ve">santiago@zarate.net.ve</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
If i understand correctly, what you want to do is:<br><br>"Give the machine claiming name 'mike' the 10.10.10.1 address"<br><br>You can just add in /etc/hosts :<br><br>10.10.10.1 mike<br></blockquote>
<div><br></div><div>This should just work, as Santiago says...</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>and restart the service...<br></blockquote>
<div><br></div><div><br></div><div>...and it shouldn't even require a restart.</div><div><br></div><div><h2 style="font-family: 'Times New Roman'; font-size: medium; ">NOTES</h2><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">When it receives a SIGHUP,</span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "> </span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><b>dnsmasq </b></span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">clears its cache and then re-loads</span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "> </span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><i>/etc/hosts</i></span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "> </span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">and</span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "> </span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><i>/etc/ethers </i></span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">and any file given by --dhcp-hostsfile, --dhcp-optsfile or --addn-hosts. The dhcp lease change script is called for all existing DHCP leases. If</span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "> </span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><b>--no-poll</b></span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "> </span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">is set SIGHUP also re-reads</span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "> </span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><i>/etc/resolv.conf.</i></span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "> </span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">SIGHUP does NOT re-read the configuration file.</span></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>have a look: <a href="http://bit.ly/9D2JzU" target="_blank">http://bit.ly/9D2JzU</a> <a href="http://bit.ly/a7DJ1e" target="_blank">http://bit.ly/a7DJ1e</a><br><br>Though i strongly suggest you to make dnsmasq give ip addresses based on macaddress (For security reasons...)<br>
<br><br><div class="gmail_quote">2010/10/13 Mark Goldman <span dir="ltr"><<a href="mailto:bitshifter@gmail.com" target="_blank">bitshifter@gmail.com</a>></span><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">
<p>New user here, I spent several hours googling and came up empty handed.</p>
<p>What I would like is for dnsmasq to hand out the ip address that is in /etc/hosts for any host that claims that hostid. I would like to avoid having a dhcp-host=name line for each host that is in /etc/hosts in addition to having the information in /etc/hosts.</p>
<p>If there is a better way to achieve this, I'm game for that too. I would like to have all this info localized.</p>
<p>-mdg</p>
<br></div></div>_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">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>
<br></blockquote></div><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>
<br></blockquote></div><br>