Cisco Cisco IOS Software Release 12.4(4)T
VRF-Aware DNS
Configuration Examples for VRF-Aware DNS
7
Cisco IOS Release 12.4(4)T
DETAILED STEPS
Configuration Examples for VRF-Aware DNS
This section provides the following configuration examples:
•
•
•
•
VRF-Specific Name Server Configuration: Example
The following example shows how to specify a VPN named vpn1 with the IP addresses of 172.16.1.111
and 172.16.1.2 as the name servers:
and 172.16.1.2 as the name servers:
ip name-server vrf vpn1 172.16.1.111 172.16.1.2
VRF-Specific Domain Name List Configuration: Example
The following example shows how to add several domain names to a list in vpn1 and vpn2. The domain
name is only used for name queries in the specified VRF.
name is only used for name queries in the specified VRF.
ip domain list vrf vpn1 company.com
ip domain list vrf vpn2 school.edu
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode.
•
Enter your password if prompted.
Step 2
show hosts
[vrf vrf-name]
{all | hostname}
[summary]
Example:
Router# show hosts vrf vpn2
•
Displays the default domain name, the style of name
lookup service, a list of name server hosts, the cached
list of hostnames and addresses, and the cached list of
hostnames and addresses specific to a particular Virtual
Private Network (VPN).
lookup service, a list of name server hosts, the cached
list of hostnames and addresses, and the cached list of
hostnames and addresses specific to a particular Virtual
Private Network (VPN).
•
The vrf keyword and vrf-name argument only display
the entries if a VRF name has been configured.
the entries if a VRF name has been configured.
•
If you enter the show hosts command without
specifying any VRF, only the entries in the global name
cache will display.
specifying any VRF, only the entries in the global name
cache will display.
Step 3
clear host
[vrf vrf-name]
{all | hostname}
Example:
Router# clear host vrf vpn2
(Optional) Deletes entries from the hostname-to-address
global address cache or VRF name cache.
global address cache or VRF name cache.