Assigning Name Servers to the System
To assign name servers to the system:
- Access the virtual router context.host1(config)#virtual-router boston
- Define static routes to the gateways that provide access
to the name servers.host1:boston(config)#ip route 0.0.0.0 0.0.0.0 gatewayIpAddress
- Enable the virtual router to query the configured DNS
name servers when it needs an IP-hostname-to-IP-address translation.
Domain lookup is disabled by default.host1:boston(config)#ip domain-lookup
- Specify a default domain name for the hosts.host1:boston(config)#ip domain-name urlofinterest.com

Note: You must define a default domain name for each name resolver. Multiple name resolvers can use the same default domain name. If you map an unqualified hostname (one without a domain name) to an IP address with the host ftp command, the domain name is appended to the hostname before the name is stored in the host table.
- Specify the DNS name servers that the system can query
for hostname-to-IP-address resolution.host1:boston(config)#ip name-server 10.2.0.3 host1:boston(config)#ip name-server 10.2.5.5
This command supports both IPv4 and IPv6 addressing formats.
Hide Navigation Pane
Show Navigation Pane
SHA1