On 2023-04-04 01:25, Carlos E. R. wrote: Summary: want to setup /etc/resolv.conf using NM (Network Manager) and dnsmasq. Do not configure DNS servers in NM. In /etc/sysconfig/network/config, do: NETCONFIG_DNS_POLICY="STATIC" NETCONFIG_DNS_FORWARDER="dnsmasq" NETCONFIG_DNS_FORWARDER_FALLBACK="yes" NETCONFIG_DNS_STATIC_SEARCHLIST="your_domain" NETCONFIG_DNS_STATIC_SERVERS="127.0.0.1" Then run "/run/netconfig/resolv.conf". This should result in an /etc/resolv.conf like this: Laicolasse:~ # cat /etc/resolv.conf | egrep -v "^[[:space:]]*$|^#" search your_domain nameserver 127.0.0.1 Laicolasse:~ # Notice that "NETCONFIG_DNS_FORWARDER_FALLBACK" doesn't work, so we do something else. Edit /etc/dnsmasq.conf: resolv-file=/run/NetworkManager/no-stub-resolv.conf #no-resolv Add dns servers of your choice, if/as wanted: # resolver4.opendns.com server=208.67.222.222 # resolver2.opendns.com server=208.67.222.220 # http://www.privacyfoundation.ch/ server=77.109.138.45 server=77.109.138.29 # https://digitalcourage.de/support/zensurfreier-dns-server server=85.214.20.141 #clooudfare server=1.1.1.1 server=1.0.0.1 # Google servers #server=8.8.8.8 #server=8.8.4.4 local=/your_domain/ Create or edit /etc/apparmor.d/local/usr.sbin.dnsmasq: # Site-specific additions and overrides for 'usr.sbin.dnsmasq' /run/NetworkManager/no-stub-resolv.conf r, Restart services: systemctl restart apparmor.service systemctl restart dnsmasq.service I think that's all :-) -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)