ip name-server
Specifies the IP address of up to 6 name servers to resolve DNS names.
Syntax: [no] ip name-server server-address1 [ server-address2...server-address6]
server-address1
IP address of a name server.
server-address2...server-address6
IP addresses of additional name servers.
Description: Domain name servers are systems responsible for matching fully qualified domains with their IP address.
Use the ip name-server command to specify up to six name servers to be used for address resolution. The command may be used multiple times as long as the total number of name servers does not exceed 6. An error is generated if more than six name servers are specified.
Use the no ip name-server command to delete an IP address from the list of name servers.
Factory Default: No name server addresses are specified.
Command Mode: Configuration.
Example 1: In the following example, the ip name-server command specifies two addresses to be used to resolve DNS addressing and the show hosts command displays the new setting:
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#ip name-server 10.1.1.230 10.5.1.240
router(config)#end
router#show hosts
Default domain is avici.com
Domain list: avici.com, avici.webhost.com
Name/address lookup uses domain service
Name servers are 10.1.1.230, 10.5.1.240
Host Flags Age Type Address(es)
testbed24 (perm, OK) ** IP 10.1.2.24
swuser1 (perm, OK) ** IP 10.5.1.9
Example 2: You can also use the show running-config command to display the new setting:
router#show running-config
.
.
.
ip domain-list avici.com
ip domain-list avici.webhost.com
ip host testbed24 10.1.2.24
ip host swuser1 10.5.1.9
ip domain-name avici.com
ip name-server 10.1.1.230
ip name-server 10.5.1.240
.
.
.
Related Commands: ip domain-list
ip domain-lookup
ip domain-name
show hosts
show running-config
Copyright © 2004
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: IP_Commands.fm
HTML File Name: IP_Commands8.html
Last Updated: 05/10/04 at 16:34:20