C
HAPTER
41
| Domain Name Service Commands
– 971 –
COMMAND USAGE
â—† At least one name server must be specified before DNS can be enabled.
â—† 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 (971)
ip name-server (973)
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