Cisco Cisco IOS Software Release 12.4(4)T
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
VRF-Aware DNS
ip name-server
17
Cisco IOS Release 12.4(4)T
ip name-server
To specify the address of one or more name servers to use for name and address resolution, use the
ip name-server command in global configuration mode. To remove the addresses specified, use the no
form of this command.
ip name-server command in global configuration mode. To remove the addresses specified, use the no
form of this command.
ip name-server [vrf vrf-name] server-address1 [server-address2...server-address6]
no ip name-server [vrf vrf-name] server-address1 [server-address2...server-address6]
Syntax Description
Defaults
No name server addresses are specified.
Command Modes
Global configuration
Command History
Examples
The following example shows how to specify IPv4 hosts 172.16.1.111 and 172.16.1.2 as the name
servers:
servers:
ip name-server 172.16.1.111 172.16.1.2
This command will be reflected in the configuration file as follows:
ip name-server 172.16.1.111
ip name-server 172.16.1.2
The following example shows how to specify IPv4 hosts 172.16.1.111 and 172.16.1.2 as the name
servers for vpn1:
servers for vpn1:
Router(config)# ip name-server vrf vpn1 172.16.1.111 172.16.1.2
vrf vrf-name
(Optional) Defines a Virtual Private Network (VPN) routing and
forwarding instance (VRF) table. The vrf-name argument
specifies a name for the VRF table.
forwarding instance (VRF) table. The vrf-name argument
specifies a name for the VRF table.
server-address1
IPv4 or IPv6 addresses of a name server.
server-address2...server-address6
(Optional) IP addresses of additional name servers (a maximum
of six name servers).
of six name servers).
Release
Modification
10.0
This command was introduced.
12.2(2)T
Support for IPv6 addresses was added.
12.0(21)ST
Support for IPv6 addresses was added.
12.0(22)S
Support for IPv6 addresses was added.
12.2(14)S
Support for IPv6 addresses was added.
12.2(27)SBC
This command was integrated into Cisco IOS Release 12.2(27)SBC.
12.4(4)T
The vrf keyword and vrf-name argument were added.