PurposeCommand or Action
(Optional)
Defines the default domain name server that Cisco NX-OS uses
to complete unqualified hostnames. You can optionally define a
switch(config-vrf)# ip
domain-name name [use-vrf
vrf-name]
Step 3
VRF that Cisco NX-OS uses to resolve this domain name server
if it cannot be resolved in the VRF under which you configured
this domain name.
Cisco NX-OS appends the default domain name to any hostname
that does not contain a complete domain name before starting a
domain-name lookup.
(Optional)
Defines additional domain name servers that Cisco NX-OS can
use to complete unqualified hostnames. You can optionally define
switch(config-vrf)# ip
domain-list name [use-vrf
vrf-name]
Step 4
a VRF that Cisco NX-OS uses to resolve this domain name server
if it cannot be resolved in the VRF under which you configured
this domain name.
Cisco NX-OS uses each entry in the domain list to append that
domain name to any hostname that does not contain a complete
domain name before starting a domain-name lookup. Cisco
NX-OS continues this process for each entry in the domain list
until it finds a match.
(Optional)
Defines up to six name servers. The address can be either an IPv4
address or an IPv6 address.
switch(config-vrf)# ip
name-server address1
[address2... address6] [use-vrf
vrf-name]
Step 5
You can optionally define a VRF that Cisco NX-OS uses to reach
this name server if it cannot be reached in the VRF that you
configured this name server under.
(Optional)
Displays information about DNS.
switch(config-vrf)# show hosts
Step 6
(Optional)
Saves the change persistently through reboots and restarts by
copying the running configuration to the startup configuration.
switch(config)# copy
running-config startup-config
Step 7
Verifying the DNS Client Configuration
To display the DNS client configuration, perform the following task:
PurposeCommand
Displays information about DNS.show hosts
Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide, Release 6.x
6 OL-25777-03
Configuring DNS
Verifying the DNS Client Configuration