Skip to main content

Setting up systemd resolv.conf

·107 words·1 min
A meme from Scooby Doo. Fred is taking the mask off a ghost labelled systemd, to discover it’s really svchost.exe

Like every intelligent person, I hate systemd. But Linux seems determined to undo all good things, and Debian has adopted it.

In my Ubuntu 22.04 install, I’d disabled it and gone back to normal resolv.conf resolution. That didn’t work for 24.04. So I had to figure out the stupid resolution the systemd way.

To fix DNS on Ubuntu 24.04 — which, I will note, works perfectly for every other system that gets provisioned from my DHCP server — I had to go into /etc/systemd/resolved.conf and uncomment a bunch of stupid crap.

/etc/systemd/resolved.conf
...
[Resolve]
DNS=(my DNS server IP address)
...
Domains=(my local domain)
DNSSEC=yes
...
DNSStubListener=no
...
Reply by Email