<br><br><div class="gmail_quote">On Nov 16, 2007 12:50 AM, Ben &lt;<a href="mailto:abnormaliti@clivepeeters.com.au">abnormaliti@clivepeeters.com.au</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I need to setup dnsmasq to ignore unknown devices and I have been able<br>to do so with 2.40 but I have a configuration issue that I think may be<br>a bug.<br><br>Here is what i want to have.<br><br> &nbsp; &nbsp;dhcp-range=<a href="http://10.7.5.100" target="_blank">
10.7.5.100</a>,<a href="http://10.7.5.254" target="_blank">10.7.5.254</a>,24h<br> &nbsp; &nbsp;dhcp-ignore=#known<br> &nbsp; &nbsp;dhcp-hostsfile=/etc/dnsmasq.d/#hostsfile#<br><br> &nbsp; &nbsp;dhcp-host=tc01,<a href="http://10.7.5.13" target="_blank">
10.7.5.13</a><br> &nbsp; &nbsp;dhcp-host=tc02,<a href="http://10.7.5.14" target="_blank">10.7.5.14</a><br><br>This should, in theory, allocate IPs to devices with &nbsp;MAC addresses<br>listed in the &#39;#hostsfile#&#39; and devices named &#39;tc01&#39; and &#39;tc02&#39;. &nbsp;But
</blockquote><div><br>MAC addresses are normally listed in /etc/ethers, not /etc/hosts.&nbsp; I see you&#39;re using the brand new hostsfile feature, I don&#39;t know what version Simon implemented that but I think 2.40 is new enough.&nbsp; What format are the lines in the #hostsfile#?&nbsp; If you are using a hostsfile, why do you have dhcp-host lines in the main config?
<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>when &quot;dhcp-ignore=#known&quot; is defined &#39;tc01&#39; and &#39;tc02&#39; are ignored.
<br><br>This config works, but requires the MAC for &#39;tc01&#39; to be defined.<br><br> &nbsp; &nbsp;dhcp-range=<a href="http://10.7.5.100" target="_blank">10.7.5.100</a>,<a href="http://10.7.5.254" target="_blank">10.7.5.254</a>
,24h<br> &nbsp; &nbsp;dhcp-ignore=#known<br> &nbsp; &nbsp;dhcp-hostsfile=/etc/dnsmasq.d/#hostsfile#<br><br> &nbsp; &nbsp;dhcp-host=00:20:4a:9c:52:c2,<a href="http://10.7.5.13" target="_blank">10.7.5.13</a>,tc01<br><br>So what i am looking for is to be able to use &quot;#known&quot; and &quot;hostsfile&quot;
<br>as well as allocate fixed IPs to devices by name.</blockquote><div><br>I think you need to put the fixed IPs into the hostsfile along with the MAC address.&nbsp; Or are you trying to match against the client supplied ID?&nbsp; That can&#39;t be trusted.
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>Is this by design or a bug?<br><br>Ben<br><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>