<html><body>
<div dir="ltr">
Thanks for the input, it appears that I misunderstood the man page and it's not possible to do what I want using dnsmasq.</div><div dir="ltr">So I just finished writing my own DHCP server that does exactly what I need and nothing else using the library from <a href="http://github.com/insomniacslk/dhcp">github.com/insomniacslk/dhcp</a></div><div dir="ltr">Remember my DHCP server is being used by strongswan for IPSec clients so there is no MAC address in play on my setup. It's entirely host name based.</div><div dir="ltr"><br></div><div dir="ltr">Anyway the custom DHCP server is working great so consider this thread resolved.</div><div dir="ltr"><br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr" style="">On Dec 24, 2020 at 04:02:04, Bottom Post Request <<a href="mailto:stappers@stappers.nl">stappers@stappers.nl</a>> wrote:<br></div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
On Thu, Dec 24, 2020 at 01:15:00AM -0600, Rob Townley wrote:<br><blockquote type="cite" style=""> <a href="https://serverfault.com/questions/272299/dnsmasq-mapping-2-mac-addresses-to-the-same-ip-address">https://serverfault.com/questions/272299/dnsmasq-mapping-2-mac-addresses-to-the-same-ip-address</a><br></blockquote><blockquote type="cite" style=""> <br></blockquote><blockquote type="cite" style=""> Configuring both with the same clientID.<br></blockquote><blockquote type="cite" style=""> Specifying two MAC addresses on one line.<br></blockquote><blockquote type="cite" style=""> <br></blockquote><blockquote type="cite" style=""> That serverfault discussion might help but not really convinced unless your<br></blockquote><blockquote type="cite" style=""> switch knows how to handle it somehow.<br></blockquote><blockquote type="cite" style=""> <br></blockquote><blockquote type="cite" style=""> How would arp responses work exactly? Whichever node responds quickest is<br></blockquote><blockquote type="cite" style=""> what it would do. Probably best to set MACs to be same at BIOS and OS<br></blockquote><blockquote type="cite" style=""> levels.<br></blockquote><br>"Two MAC address to same IP-address" how matches that the Subject line<br>and even more important the original thread?<br> <br><br><blockquote type="cite" style=""> On Thu, Dec 24, 2020 at 12:43 AM john doe <<a href="mailto:johndoe65534@mail.com">johndoe65534@mail.com</a>> wrote:<br></blockquote><blockquote type="cite" style=""> > On 12/23/2020 7:08 PM, Arthur Wiebe wrote:<br></blockquote><blockquote type="cite" style=""> > > From reading the man page, and my understanding of the statement "Only one<br></blockquote><blockquote type="cite" style=""> > > hostname can be given in a --dhcp-host option, but aliases are possible by<br></blockquote><blockquote type="cite" style=""> > > using CNAMEs. (See --cname )" I've been attempting to implement this<br></blockquote><blockquote type="cite" style=""> > > without any success so far.<br></blockquote> ...<br><blockquote type="cite" style=""> > ><br></blockquote><blockquote type="cite" style=""> ><br></blockquote><blockquote type="cite" style=""> > Couple of thoughts here and this assumes that DEVICE_V1 is having the<br></blockquote><blockquote type="cite" style=""> > correct IP before fiddling with cnames:<br></blockquote><blockquote type="cite" style=""> ><br></blockquote> ...<br><blockquote type="cite" style=""> ><br></blockquote><blockquote type="cite" style=""> > With 'dhcp-host' as shown above, the client presenting the hostname<br></blockquote><blockquote type="cite" style=""> > 'DEVICE_V1' should get the fixed address shown above.<br></blockquote><blockquote type="cite" style=""> ><br></blockquote><blockquote type="cite" style=""> > The cname option that you have, will let DNS resolve 'DEVICEV1' or<br></blockquote><blockquote type="cite" style=""> > 'DEVICE_V2'.<br></blockquote><blockquote type="cite" style=""> ><br></blockquote><blockquote type="cite" style=""> > So 'host DEVICE_V1' or 'host DEVICE_V2' should show for both the IP of<br></blockquote><blockquote type="cite" style=""> > DEVICE_V1.<br></blockquote><blockquote type="cite" style=""> ><br></blockquote><blockquote type="cite" style=""> ><br></blockquote><blockquote type="cite" style=""> > - When Dnsmasq starts, is DEVICE_V1 present in the lease file?<br></blockquote><blockquote type="cite" style=""> ><br></blockquote><blockquote type="cite" style=""> > Cnames are only created if the hostname is known to Dnsmasq when starting.<br></blockquote><blockquote type="cite" style=""> ><br></blockquote><blockquote type="cite" style=""> ><br></blockquote><br><br><br>Please show the world that you understand that<br>you are sending a message to a large audience.<br>Make it possible that messages can be skipped (or even get lost)<br>and still be able to follow the discussion.<br><br>Reply below the previous text.<br><br><br>Do it for your future self when you are reading this from<br>an archive that a websearch engine did give you.<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">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote>
</div>
</div>
</body></html>