C
HAPTER
43
| Domain Name Service Commands
– 1375 –
â—† If all name servers are deleted, DNS will automatically be disabled.
EXAMPLE
This example enables DNS and then displays the configuration.
Console(config)#ip domain-lookup
Console(config)#end
Console#show dns
Domain Lookup Status:
DNS Enabled
Default Domain Name:
sample.com
Domain Name List:
sample.com.jp
sample.com.uk
Name Server List:
192.168.1.55
10.1.0.55
Console#
RELATED COMMANDS
ip domain-name (1375)
ip name-server (1377)
ip domain-name This command defines the default domain name appended to incomplete
host names (i.e., host names passed from a client that are not formatted
with dotted notation). Use the no form to remove the current domain
name.
SYNTAX
ip domain-name name
no ip domain-name
name - Name of the host. Do not include the initial dot that
separates the host name from the domain name.
(Range: 1-127 characters)
DEFAULT SETTING
None
COMMAND MODE
Global Configuration
EXAMPLE
Console(config)#ip domain-name sample.com
Console(config)#end
Console#show dns
Domain Lookup Status:
DNS Disabled
Default Domain Name:
sample.com
Domain Name List: