<br><br><div class="gmail_quote">On Wed, Oct 13, 2010 at 4:12 PM, Mark Goldman <span dir="ltr"><<a href="mailto:bitshifter@gmail.com">bitshifter@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<p>Additionally, if I add the line dhcp-host=mike to my dnsmasq.conf the ip address is assigned as expected. I forgot to put that in the last e-mail.</p><div><div></div><div class="h5">
<div class="gmail_quote">> When I do as you suggest, I get the message: not giving the name mike. To<br>> the dhcp lease of x.x.x.x because the name exists in /etc/hosts with address<br>> 10.10.10.1<br></div></div>
</div></blockquote><div><br></div><div>Just to double-check, you aren't using dhcp-ignore-names are you? I think the exact behavior you describe would result from</div><div><br></div><div>dhcp-ignore-names=#known</div>
<div><br></div><div>since the man page says</div><div><br></div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">When a host matches any dhcp-host directive (or one implied by /etc/ethers) then the special tag "known" is set.</span></div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5"><div class="gmail_quote">> <br>
> As far as locking everything down by mac, the network is isolated and<br>> 'trusted'. I get a machine, I need to set it up and I get to keep it for a<br>> little while then I deliver it and don't see it again. I just want a<br>
> convenient name to refer to it while its here and a predictable ip based on<br>> the hostname I assign when I install.<br>> <br>> Thanks<br>>> 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>>><br>>> and restart the service...<br>
>><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<br>
>> macaddress (For security reasons...)<br>>><br>>><br>>> 2010/10/13 Mark Goldman <<a href="mailto:bitshifter@gmail.com" target="_blank">bitshifter@gmail.com</a>><br>>><br>>>> New user here, I spent several hours googling and came up empty handed.<br>
>>><br>>>> What I would like is for dnsmasq to hand out the ip address that is in<br>>>> /etc/hosts for any host that claims that hostid. I would like to avoid<br>>>> having a dhcp-host=name line for each host that is in /etc/hosts in<br>
> addition<br>>>> to having the information in /etc/hosts.<br>>>><br>>>> If there is a better way to achieve this, I'm game for that too. I would<br>>>> like to have all this info localized.<br>
>>><br>>>> -mdg<br>>>><br>>>> _______________________________________________<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>>>><br></div>
</div></div><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>