Before you begin
Ensure that you have a domain name server on your network.
Procedure
PurposeCommand or Action
Enters global configuration mode.switch# configuration terminal
Step 1
Specifies a configurable virtual and routing
(VRF) name.
switch(config)# vrf context managment
Step 2
Defines up to six static hostname-to-address
mappings in the host name cache.
switch(config)# ip host name address1
[address2... address6]
Step 3
Defines the default domain name server that
Cisco NX-OS uses to complete unqualified
(Optional) switch(config)# ip domain name
name [use-vrf vrf-name]
Step 4
hostnames. 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.
Defines additional domain name servers that
Cisco NX-OS can use to complete unqualified
(Optional) switch(config)# ip domain-list
name [use-vrf vrf-name]
Step 5
hostnames. 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 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 for each
entry in the domain list until it finds a match.
Defines up to six name servers. The address
can be either an IPv4 address or an IPv6
address.
(Optional) switch(config)# ip name-server
server-address1 [server-address2...
server-address6] [use-vrf vrf-name]
Step 6
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.
Enables DNS-based address translation. This
feature is enabled by default.
(Optional) switch(config)# ip domain-lookup
Step 7
Displays information about DNS.(Optional) switch(config)# show hosts
Step 8
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 7.x
175
Configuring DNS
Configuring DNS Clients