dns

This command lets you specify a list of DNS servers in the /etc/systemd/resolved.conf file; the servers are used in the specified order. The previously configured list of DNS servers is deleted.

If you also want to configure DHCP (the dhcp command) and use a manually specified DNS server, run the dns command after running the dhcp command and restarting the SVM or the network service (the manageservices restart network command).

If obtaining DNS servers via DHCP is configured, this command disables it.

Settings

[<Server1>] [<Server2>] [<Server3>]

where <Server> is the IP address of the DNS server (optional parameter). You can specify up to three IP addresses.

If the command is run without options (no addresses are specified), all DNS records in the /etc/systemd/resolved.conf file are deleted.

Example:

> ssh klconfig@192.0.2.17 dns 192.0.2.45 198.51.100.7

> klconfig@192.0.2.17's password:

KLCONFIG OK

Specific errors

None.

Page top