DNS resolver configuration example
The following example defines three DNS servers for the list of DNS servers, three domain
names to add as suffixes to hostnames, a DNS query retry value, and a DNS query timeout
value. The final command in the example enables the DNS resolver
G450-001(config)# ip domain name-server-list 1
G450-001(config-name-server-list:1)# description "All DNS servers"
Done!
G450-001(config-name-server-list:1)# name-server 1 1.1.1.1
Done!
G450-001(config-name-server-list:1)# name-server 2 2.2.2.2
Done!
G450-001(config-name-server-list:1)# name-server 3 3.3.3.3
Done!
G450-001(config-name-server-list:1)# exit
G450-001(config)# ip domain list 1 support.avaya.com
Done!
G450-001(config)# ip domain list 2 global.avaya.com
Done!
G450-001(config)# ip domain list 3 avaya.com
Done!
G450-001(config)# ip domain retry 4
Done!
G450-001(config)# ip domain timeout 5
Done!
G450-001(config)# ip domain lookup
Done!
Using DNS resolver to resolve a hostname
Use the nslookup command, followed by a hostname, to resolve the hostname to an IP
address.
Maintaining DNS resolver
There are various commands you can use to display DNS resolver information, clear DNS
resolver counters, and display DNS resolver log messages.
Showing DNS resolver information
You can use the following commands to display information about DNS resolver:
Enter show ip domain to display the DNS resolver's configuration. The output shows
●
the DNS servers that were statically configured and those which were gathered using
DHCP or PPP protocols, as well as the list of domain suffixes.
DNS resolver
.
Issue 1 January 2008
93