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.
Configuring DNS ■ 321
Chapter 5: Managing the System