<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Would this help as well?</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">kernel parameter: net.ifnames=0<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><a href="https://man7.org/linux/man-pages/man8/systemd-udevd.service.8.html">https://man7.org/linux/man-pages/man8/systemd-udevd.service.8.html</a><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">      net.ifnames=<br>           Network interfaces are renamed to give them predictable names<br>           when possible. It is enabled by default; specifying 0<br>           disables it.<br></div><input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"enableNoauth":false,"persistentProtection":false,"expandedWatermarking":false,"expires":false,"isManaged":false},"attachments":{},"compose-id":"43","compose-window":{"secure":false}}"></div><br><div class="gmail_quote" style=""><div dir="ltr" class="gmail_attr">On Wed, Jun 16, 2021 at 5:44 AM Alkis Georgopoulos <<a href="mailto:alkisg@gmail.com">alkisg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If I'm reading this correctly, it needs an extra step, to discover and <br>
list all the interfaces, both after the initial installation and after <br>
cloning and after motherboard/NIC replacements, e.g.<br>
<br>
interface-name=webserver,enp2s0<br>
interface-name=webserver,enp4s0<br>
interface-name=webserver,enp5s0<br>
<br>
It would be simpler if we could do:<br>
interface-name=webserver,*<br>
<br>
Nevertheless, it saves us from modifying the dnsmasq configuration every <br>
time the IP changes, so it's much better than what we had!<br>
<br>
Thank you very much Simon!<br>
<br>
<br>
On 6/16/21 12:03 PM, Simon Kelley wrote:<br>
On 16/06/2021 09:10, Alkis Georgopoulos wrote:<br>
 > Hi, from the dnsmasq man page:<br>
 ><br>
 >> The special address 0.0.0.0 is taken to mean<br>
 >> "the address of the machine running dnsmasq"<br>
 ><br>
 > This is for DHCP.<br>
 > Can I do the same for DNS queries, in some way?<br>
 > So that I could map "webserver" to the dnsmasq IP,<br>
 > and DNS clients would be able to bookmark and use <a href="http://webserver" rel="noreferrer" target="_blank">http://webserver</a>,<br>
 > even if the dnsmasq IP is dynamic.<br>
<br>
Not using 0.0.0.0, this functionality is provided a different way, see<br>
<br>
--interface-name<br>
<br>
in the man page. That should do what you want nicely.<br>
<br>
Cheers,<br>
<br>
Simon.<br>
<br>
<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="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div><div><br></div></div>