I'm running 20.04 (up to date) on my laptop. Initial install was 19.04, and have upgraded at each release since then.
While everything seems to be running fine, I've found some log errors from dnsmasq.
systemctl status dnsmasq shows:
sudo netstat -ntlp | grep LISTEN shows that systemd-resolved is using port 53.Code:dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Sun 2020-07-05 10:01:42 AEST; 1h 37min ago Process: 1395 ExecStartPre=/usr/sbin/dnsmasq --test (code=exited, status=0/SUCCESS) Process: 1427 ExecStart=/etc/init.d/dnsmasq systemd-exec (code=exited, status=2) Jul 05 10:01:41 dbUbuntu systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server... Jul 05 10:01:41 dbUbuntu dnsmasq[1395]: dnsmasq: syntax check OK. Jul 05 10:01:42 dbUbuntu dnsmasq[1427]: dnsmasq: failed to create listening socket for port 53: Address already in use Jul 05 10:01:42 dbUbuntu dnsmasq[1427]: failed to create listening socket for port 53: Address already in use Jul 05 10:01:42 dbUbuntu dnsmasq[1427]: FAILED to start up Jul 05 10:01:42 dbUbuntu systemd[1]: dnsmasq.service: Control process exited, code=exited, status=2/INVALIDARGUMENT Jul 05 10:01:42 dbUbuntu systemd[1]: dnsmasq.service: Failed with result 'exit-code'. Jul 05 10:01:42 dbUbuntu systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
But searching around, I found different information from various Ubuntu versions etc about whether dnsmasq is required or not - even some saying it was required by NetworkManager, mention of resolvconf etc.
So, I'm confused about what the correct setup should be for 20.04? And to get to that correct setup, should I just disable the dnsmasq service?
Bookmarks