Domain Name Service Commands

58-4

58
Default Setting
None
Command Mode
Global Configuration
Command Usage
Domain names are added to the end of the list one at a time.
When an incomplete host name is received by the DNS service on thi s switch,
it will work through the domain list, appending each domain n ame in the list to
the host name, and checking with the specified name servers for a match.
If there is no domain list, the domain name specified with the ip domain-name
command is used. If there is a domain list, the default domain name is not used.
Example
This example adds two domain names to the current list and then displays the list.
Related Commands
ip domain-name (58-3)
ip name-server
This command specifies the address of one or more domain name servers to use for
name-to-address resolution. Use the no form to remove a nam e server from this list.
Syntax
[no] ip name-server server-address1 [server-address2server-address6]
server-address1 - IP address of domain-name server.
server-address2server-address6 - IP address of additional
domain-name servers.
Default Setting
None
Command Mode
Global Configuration
Console(config)#ip domain-list sample.com.jp
Console(config)#ip domain-list sample.com.uk
Console(config)#end
Console#show dns
Domain Lookup Status:
DNS disabled
Default Domain Name:
.sample.com
Domain Name List:
.sample.com.jp
.sample.com.uk
Name Server List:
Console#