58 Domain Name Service Commands

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

Related Commands

ip domain-name(58-3) ip name-server(58-4)

show hosts

This command displays the static host name-to-address mapping table.

Command Mode

Privileged Exec

Example

Note that a host name will be displayed as an alias if it is mapped to the same address(es) as a previously configured entry.

Console#show hosts

Hostname rd5

Inet address

10.1.0.55192.168.1.55

Alias 1.rd6

Console#

58-6

Page 524
Image 524
Accton Technology 24/48-Port, ES4548D, ES4524D manual Show hosts, Ip domain-name58-3 ip name-server58-4