dnsmasq and resolvconf don't play nicely on 21.10
Chris Green
cl at isbd.net
Sat Dec 4 16:47:43 UTC 2021
I am trying to use dnsmasq on my [x]ubuntu 21.10 laptop.
I have disabled systemd.resolved (as I believe is necessary), I have
installed dnsmasq.
When I reboot I find that /etc/resolv.conf (symbolic link to
/run/resolvconf/resolv.conf) is empty and /run/dnsmasq/resolv.conf is
non-existent. For dnsmasq to run correctly both of these files should
exist.
A clean installation of dnsmasq on a Raspberry Pi works OK, it has
/etc/resolv.conf with:-
# Generated by resolvconf
domain zbmc.eu
nameserver 127.0.0.1
... and /run/dnsmasq/resolv.conf has:-
# Generated by resolvconf
nameserver 192.168.1.2
So is this a bug in Ubuntu or have I got some other part of the
resolvconf system misconfigured somehow?
I do see a couple of related errors in syslog:-
Dec 4 16:02:02 t470 dnsmasq[882]: run-parts: /etc/resolvconf/update.d/dnsmasq exited with return code 1
Dec 4 16:02:02 t470 dnsmasq[882]: run-parts: /etc/resolvconf/update.d/libc exited with return code 1
I can manually edit /etc/resolv.conf etc. to make things work but I
would much rather have the installation/configuration work right by
itself.
--
Chris Green
More information about the ubuntu-users
mailing list