[Dnsmasq-discuss] Use special address for DNS

Alkis Georgopoulos alkisg at gmail.com
Thu Jun 17 14:36:39 UTC 2021

Thank you for the idea,

unfortunately, when old-style-names are used, the MAC/name mappings are 
saved in /etc/udev/rules.d/70-persistent-net.rules, so replacing NICs or 
cloning installations results in increasing numbers, eth0, eth1, eth2, 
... eth10.


On 6/17/21 4:56 PM, B. Cook wrote:
Would this help as well?

kernel parameter: net.ifnames=0


             Network interfaces are renamed to give them predictable names
             when possible. It is enabled by default; specifying 0
             disables it.

On Wed, Jun 16, 2021 at 5:44 AM Alkis Georgopoulos <alkisg at gmail.com
<mailto:alkisg at gmail.com>> wrote:

     If I'm reading this correctly, it needs an extra step, to discover and
     list all the interfaces, both after the initial installation and after
     cloning and after motherboard/NIC replacements, e.g.


     It would be simpler if we could do:

     Nevertheless, it saves us from modifying the dnsmasq configuration
     time the IP changes, so it's much better than what we had!

     Thank you very much Simon!

     On 6/16/21 12:03 PM, Simon Kelley wrote:
     On 16/06/2021 09:10, Alkis Georgopoulos wrote:
       > Hi, from the dnsmasq man page:
       >> The special address is taken to mean
       >> "the address of the machine running dnsmasq"
       > This is for DHCP.
       > Can I do the same for DNS queries, in some way?
       > So that I could map "webserver" to the dnsmasq IP,
       > and DNS clients would be able to bookmark and use
     http://webserver <http://webserver>,
       > even if the dnsmasq IP is dynamic.

     Not using, this functionality is provided a different way, see


     in the man page. That should do what you want nicely.



     Dnsmasq-discuss mailing list
     Dnsmasq-discuss at lists.thekelleys.org.uk
     <mailto:Dnsmasq-discuss at lists.thekelleys.org.uk>

More information about the Dnsmasq-discuss mailing list