[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Assigning Name Servers
To assign
name servers to the system:
- Access the virtual router context.
- Define static routes to the gateways that provide access
to the name servers.
- Enable the virtual router to query name servers.
- Specify a default domain name for the hosts.
- Specify the name servers.
Example
- host1(config)#virtual-router boston
- host1:boston(config)#ip route 0.0.0.0 0.0.0.0 gatewayIpAddress
- host1:boston(config)#ip domain-lookup
- host1:boston(config)#ip domain-name urlofinterest.com
- host1:boston(config)#ip name-server 10.2.0.3
- host1:boston(config)#ip name-server 10.2.5.5
ip domain-lookup
- Use to enable the system to query the configured DNS name
servers when it needs an IP-hostname-to-IP-address translation.
- Domain lookup is disabled by default.
- Example
- host1(config)#ip domain-lookup
- Use the no version to disable
domain lookup.
- See ip domain-lookup.
ip domain-name
- Use to define a default domain name for the clients that
a name resolver serves.
- 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.
- Example
- host1(config)#ip domain-name bigcompany.com
- Use the no version to delete
the domain name; that is, the domain name will no longer be appended
to hostnames in the static host table.
- See ip domain-name.
ip name-server
- Use to specify a DNS name server that the system can query
for hostname-to-IP-address resolution.
- This command supports both IPv4 and IPv6 addressing formats.
- Example
- host1(config)#ip name-server 192.168.25.100
1:2:3:4:5:6:7:8:9:0:a:b:c:d:e:f
- Use the no version to delete
the name server.
- See ip name-server.
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]