Host services

resolvectl dns <iface> <server-ip>

Point this host's resolver at a DNS server (a DHCP lease with dns-server does the same). 'resolvectl status' shows it.

Works on: PC, Server, Printer, NASMode: shell

Example

PC1# resolvectl dns Eth0 10.0.0.5
Run this command live

Don't just read it — type resolvectl dns <iface> <server-ip> in a real network simulator in your browser and watch it take effect. No install, no account needed to start.

Open the lab

Frequently asked

What does the "resolvectl dns <iface> <server-ip>" command do?

Point this host's resolver at a DNS server (a DHCP lease with dns-server does the same). 'resolvectl status' shows it.

Example of "resolvectl dns <iface> <server-ip>"

PC1# resolvectl dns Eth0 10.0.0.5

More Host services commands

← Back to the full command reference