Low Orbit Flux Logo 2 D

systemd-resolved


resolvectl

Enable and start systemd-resolvd like this:


sudo systemctl enable systemd-resolved
sudo systemctl start systemd-resolved

/etc/systemd/resolved.conf
/etc/systemd/resolved.conf.d/

Where is the config file for systemd-resolvd????????

This is probably it:

/etc/systemd/resolved.conf

Create manually on Arch? is it used on Ubuntu?????


ln -rsf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

An example config file:

/etc/systemd/resolved.conf.d/dns_servers.conf
[Resolve] DNS=192.168.35.1 fd7b:d0bd:7a6e::1 Domains=~.

You can check status with this:


resolvectl status

/run/systemd/resolve/stub-resolv.conf points to resolved DNS server
/run/systemd/resolve/resolv.conf points to real DNS server

References