Skip to main content

dns command

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

Note
In a Flex System, DNS settings cannot be modified on the IMM2. 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 [<em className="ph i">options</em>]
option:
-state <em className="ph i">state</em>
-ddns <em className="ph i">state</em>
-i1 <em className="ph i">first_ipv4_ip_address</em>
-i2 <em className="ph i">second_ipv4_ip_address</em>
-i3 <em className="ph i">third_ipv4_ip_address</em>
-i61 <em className="ph i">first_ipv6_ip_address</em>
-i62 <em className="ph i">second_ipv6_ip_address</em>
-i63 <em className="ph i">third_ipv6_ip_address</em>
-p <em className="ph i">priority</em>
Note
The following example shows an IMM2 configuration where DNS is enabled.
Example:
system> dns
-state : enabled
-i1 : 192.168.70.202
-i2 : 192.168.70.208
-i3 : 192.168.70.212
-i61 : fe80::21a:64ff:fee6:4d5
-i62 : fe80::21a:64ff:fee6:4d6
-i63 : fe80::21a:64ff:fee6:4d7
-ddns : enabled
-ddn : ibm.com
-ddncur : ibm.com
-dnsrc : dhcp
-p : ipv6

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)