0
Is it possible to configure NetworkManager or dnsmasq to listen on 0.0.0.0 when dnsmasq is started by NetworkManager process ?
I have noticed whatever I put in /etc/NetworkManager/dnsmasq.d/00-example.conf file, like:
listen-address=0.0.0.0
dnsmasq is started with following arguments by NetworkManager:
/usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/NetworkManager/dnsmasq.pid --listen-address=127.0.1.1 --cache-size=0 --conf-file=/dev/null --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/NetworkManager/dnsmasq.d
Any idea how to change --listen-address option ?
but then I need to know in advance IP address(es) of DNS server(s). If I switch on another network, NetworkManager will get new IP address from dhcp server, and update dnsmasq with new IPs of DNS servers. If I use standalone dnsmasq, I need to configure DNS servers in advance. Right ? Or there is a way to configure NetworkManager to update /etc/resolve.conf file with new DNS servers everytime I join new network. – Igor Delac – 2020-02-06T07:01:50.943