CLI Reference Guide-R04

Table Of Contents
– 855 –
29 Domain Name Service
Commands
These commands are used to configure Domain Naming System (DNS) services.
Entries can be manually configured in the DNS domain name to IP address
mapping table, default domain names configured, or one or more name servers
specified to use for domain name to address translation.
Note that domain name services will not be enabled until at least one name server
is specified with the ip name-server command and domain lookup is enabled with
the ip domain-lookup command.
The switch performs both as a DNS client and a DNS server/proxy in the following
manner:
PC (DNS Client) <------> Switch (DNS client
1
, server/proxy
2
) <------> Server (another
server/proxy)
1
The switch acts as a DNS client when it intends to get an IP address for a host
name. In this case, it may add the domain suffix and then query name server(s).
2
Otherwise, the switch acts as a DNS server/proxy when an outside host (namely, a
DNS client) intends to get an IP address for a host name through the switch. In
this case, it will not add the domain suffix to query name server(s). That means
that the DNS client is reponsible for adding the domain suffix.
Table 164: Address Table Commands
Command Function Mode
ip domain-list Defines a list of default domain names for incomplete host
names
GC
ip domain-lookup Enables DNS-based host name-to-address translation GC
ip domain-name Defines a default domain name for incomplete host names GC
ip host Creates a static IPv4 host name-to-address mapping GC
ip name-server Specifies the address of one or more name servers to use for
host name-to-address translation
GC
ipv6 host Creates a static IPv6 host name-to-address mapping GC
clear dns cache Clears all entries from the DNS cache PE
clear host Deletes entries from the host name-to-address table PE
show dns Displays the configuration for DNS services PE
show dns cache Displays entries in the DNS cache PE
show hosts Displays the static host name-to-address mapping table PE