dns

This command lets you define a list of DNS servers that will be used in the specified order in the file /etc/resolv.conf. The previously configured list of DNS servers is deleted.

If you are also planning to configure the use of DHCP (the dhcp command), execute the dns command after the dhcp command is executed and after the SVM is restarted or the network service is restarted (the manageservices restart network command).

As a result of execution of the dns command, the list of search domains in the file /etc/resolv.conf is deleted. If you are planning to configure a list of search domains, execute the dnssearch command after the dns command.

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 executed without parameters (no address is specified), all nameserver entries in the file /etc/resolv.conf are deleted.

Example:

> ssh klconfig@10.16.98.17 dns 10.64.64.5 10.64.16.3

> klconfig@10.16.98.17’s password:

KLCONFIG OK

Specific errors

None.

Page top