AMX NXA-ENET24 Switch User Manual


 
CLI (Command Line Interface)
278
NXA-ENET24 - Software Management Guide
DNS Commands
These commands are used to configure Domain Naming System (DNS) services. You can manually configure
entries in the DNS domain name to IP address mapping table, configure default domain names, or specify one
or more name servers 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 (page 279) and domain lookup is enabled with the ip domain-lookup command
(page 280).
DNS Commands
Command Function
ip host
This command creates a
static entry in the DNS
table that maps a host
name to an IP address.
Use the no form to
remove an entry.
Syntax:
[no] ip host name address1 [address2 … address8]
name - Name of the host. (Range: 1-64 characters)
address1 - Corresponding IP address.
address2 … address8 - Additional corresponding IP addresses.
Default Setting: No static entries
Command Mode: Global Configuration
Command Usage: Servers or other network devices may support one or more
connections via multiple IP addresses. If more than one IP address is associated
with a host name using this command, a DNS client can try each address in suc-
cession, until it establishes a connection with the target device.
Example: This example maps two address to a host name:
Console(config)#ip host rd5 192.168.1.55 10.1.0.55
Console(config)#end
Console#show hosts
Hostname
rd5
Inet address
10.1.0.55 192.168.1.55
Alias
Console#
clear host
This command deletes
entries from the DNS
table.
Syntax:
clear host {name | *}
name - Name of the host. (Range: 1-64 characters)
* - Removes all entries.
Default Setting: None
Command Mode: Privileged Exec
Example: This example clears all static entries from the DNS table:
Console(config)#clear host *
Console(config)#
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 format-
ted 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-64 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:
Name Server List:
Console#