Domain Name System Configuration
© Copyright Lenovo 2017
The Domain Name System (DNS) commands are used for defining the primary
and secondary DNS servers on your local network, and for setting the default
domain name served by the switch services. DNS parameters must be configured
prior to using hostname parameters with the ping, traceroute, and tftp
commands.
Table 327.
Domain Name Service Options
Command Syntax and Usage
ip dns domainname <1‐191 characters>
Sets the default domain name used by the switch. For example:
mycompany.com
Command mode: Global configuration
no ip dns domainname
Removes the domain name used by the switch.
Command mode: Global configuration
ip dns primaryserver <IPv4 address> [dataport|mgtport]
You are prompted to set the IPv4 address for your primary DNS server, using
dotted decimal notation.
Command mode: Global configuration
no ip dns primaryserver
Removes the IPv4 primary DNS server.
Command mode: Global configuration
ip dns secondaryserver <IPv4 address> [dataport|mgtport]
You are prompted to set the IPv4 address for your secondary DNS server,
using dotted decimal notation. If the primary DNS server fails, the configured
secondary will be used instead.
Command mode: Global configuration
no ip dns secondaryserver
Removes the IPv4 secondary DNS server.
Command mode: Global configuration
ip dns ipv6 primaryserver [<IPv6 address>] [dataport|
|mgtport]
You are prompted to set the IPv6 address for your primary DNS server, using
hexadecimal format with colons.
Command mode: Global configuration
no ip dns ipv6 primaryserver
Removes the IPv6 primary DNS server.
Command mode: Global configuration
Chapter 4: Configuration Commands
597