Skip to main content

Module resolvectl

Module resolvectl 

Source
Expand description

resolvectl actions — DNS status and configuration via systemd-resolved.

Both actions are cross-distro: they work on any host running systemd-resolved, including Fedora Atomic and Ubuntu. Registration in KNOWN_ACTION_NAMES only (not DEBIAN_ONLY_ACTION_NAMES).

Functions§

resolvectl_set_dns
Set DNS servers for a network interface (sudo resolvectl dns <iface> <server>…).
resolvectl_status
Show DNS resolution status for all network interfaces (resolvectl status).
specs
Return one representative ActionSpec per action name.