Systemd/systemd-resolved

From Gentoo Wiki
< Systemd(Redirected from Systemd-resolved)
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.
Not to be confused with systemd/systemd-networkd.


systemd provides a address name resolution (DNS) daemon which can be used in conjunction with systemd-networkd.

Usage

Service

To have systemd manage address name resolution, replace /etc/resolv.conf file with a symlink to systemd-resolved's stub resolver and (re)start the systemd-resolved service:

root #ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
root #systemctl enable --now systemd-resolved.service
Note
The target path with ../ at the start is relative to the link location, not necessarily to the current directory.

resolvectl

A resolvectl user space utility exists to control the name resolution manager for systems running systemd-resolved.

user $resolvectl --help

See also

External resources