Configuring DNS
Parameter
DNS client
Configuring DNS Clients
You can configure the DNS client to use a DNS server on your network.
Before You Begin
• Ensure that you have a domain name server on your network.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Command or Action
configuration terminal
Example:
switch# configuration terminal
switch(config)#
vrf context managment
Example:
switch(config)# vrf context
management
switch(config)#
ip host name address1 [address2...
address6]
Example:
switch# ip host cisco-rtp
192.0.2.1
switch(config)#
ip domain name name [use-vrf
vrf-name]
Example:
switch(config)# ip domain-name
myserver.com
switch(config)#
ip domain-list name [use-vrf vrf-name]
Example:
switch(config)# ip domain-list
mycompany.com
switch(config)#
Cisco Nexus 5000 Series NX-OS System Management Configuration Guide, Release 5.2(1)N1(1)
Default
Enabled
Purpose
Enters the configuration terminal mode.
Specifies a configurable VRF name.
Defines up to six static host name-to-address mappings
in the host name cache.
(Optional) Defines the default domain name server that
Cisco NX-OS uses to complete unqualified host names.
You can optionally define a VRF that Cisco NX-OS uses
to resolve this domain name server if it cannot be resolved
in the VRF that you configured this domain name under.
Cisco NX-OS appends the default domain name to any
host name 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 host
names. You can optionally define a VRF that Cisco
NX-OS uses to resolve this domain name server if it
cannot be resolved in the VRF that you configured this
domain name under.
Configuring DNS Clients
141