Skip to main content

dns command

Use this command to view and set the DNS configuration of the IMM.

Note
In a Flex System, DNS settings cannot be modified on the IMM. DNS settings are managed by the CMM.

Running the dns command with no options displays all DNS configuration information. The following table shows the arguments for the options.

Table 1. dns command.

The following table is a multi-row three column table consisting of the options, option descriptions, and associated values for the options.

OptionDescriptionValues
-stateDNS stateon, off
-ddnsDDNS stateenabled, disabled
-i1Primary IPv4 DNS server IP addressIP address in dotted decimal IP address format.
-i2Secondary IPv4 DNS IP addressIP address in dotted decimal IP address format.
-i3Tertiary IPv4 DNS server IP addressIP address in dotted decimal IP address format.
-i61Primary IPv6 DNS server IP addressIP address in IPv6 format.
-i62Secondary IPv6 DNS IP addressIP address in IPv6 format.
-i63Tertiary IPv6 DNS server IP addressIP address in IPv6 format.
-pIPv4/IPv6 priorityipv4, ipv6
Syntax:
dns [options]
option:
-state state
-ddns state
-i1 first_ipv4_ip_address
-i2 second_ipv4_ip_address
-i3 third_ipv4_ip_address
-i61 first_ipv6_ip_address
-i62 second_ipv6_ip_address
-i63 third_ipv6_ip_address
-p priority
Note
The following example shows an IMM configuration where DNS is disabled.
Example:
system> dns
-state : disabled
-i1 : 0.0.0.0
-i2 : 0.0.0.0
-i3 : 0.0.0.0
-i61 : ::
-i62 : ::
-i63 : ::
-ddns : enabled
-dnsrc : DHCP
-ddn :
-ddncur : labs.lenovo.com
-p : ipv6
-dscvry : enabled

system>
The following table describes the options used in the previous example.
Table 2. dns command output.

The following table is a multi-row two column table describing the options used in the previous example.

OptionDescription
-stateState of DNS (on or off)
-i1Primary IPv4 DNS server IP address
-i2Secondary IPv4 DNS IP address
-i3Tertiary IPv4 DNS server IP address
-i61Primary IPv6 DNS server IP address
-i62Secondary IPv6 DNS IP address
-i63Tertiary IPv6 DNS server IP address
-ddnsState of DDNS (enabled or disabled)
-dnsrcPreferred DDNS domain name (dhcp or manual)
-ddnManually specified DDN
-ddncurCurrent DDN (read only)
-pPreferred DNS servers (ipv4 or ipv6)