This document describes Nx Networks Domain Name Services (DNS) client software. It includes the following sections:
DNS Overview
Displaying the DNS Client Prompts
Sample DNS Configuration
DNS Commands
DNS Overview
The DNS client software allows users on your network to use a domain name, rather than an IP address, when running Ping, Telnet, or Traceroute.
In the DNS client services configuration, you set the address of DNS servers that you want the router to query for the IP address of a host name. You can also have a hostname-to-IP address mapping table in your IP configuration that you set up using the add hostname command.
Optionally, you can add domain names to your DNS configuration. If a DNS server cannot resolve an IP address using just the host name, the router appends a domain name to the host name and resends the DNS query to the host.
How DNS Client Works
The DNS software uses the following process to query DNS servers.
To display the DNS client monitoring prompt, enter the following command at the*config
Config>protocol ip
Internet protocol user configuration
IP config>dns
DNS Client Config>
IP> prompt:*monitor
Monitor>protocol ip
IP>dns
DNS Client>
DNS Client Config> enable
DNS Client Config> set server += 128.185.1.1
DNS Client Config> set server += 128.185.20.10
DNS Client Config> set domain_name +=nxnetworks
DNS Client Config> exit
IP config>exit
Config> <CTRL-P>
*restart
Are you sure you want to restart the gateway?(Yes or [No]):y
DNS Client Config> prompt.
[M] means the command is available at the DNS Client> prompt.
Disable [C] [M]
Disables DNS client on the router.
Syntax: disable
disable
enable
exit
list
DNS Client Status: Enabled
Timeout, in seconds: 15
DNS Server location: 128.185.1.1
128.185.20.10
Domain name(s): nxnetworks
DNS Client> prompt, this command restores the saved configuration.
Syntax: revert
Example: revert
DNS Client> prompt to permanent memory so they are still present after you restart the router.
Syntax: save
Example: save
set timeout = 600
set server = 192.168.3.3
| Enter . . . | To . . . |
|---|---|
| += IP address | Add a DNS server to the DNS configuration. The new server goes to the end of the list. |
| -= IP address | Detach a server from an interface. |
domain_name
Optionally, you can add domain names to your DNS configuration. If a DNS server cannot resolve an IP address using just the host name, the router appends a domain name to the host name and resends the DNS query to the host. If the server still cannot resolve the name, the router appends the next domain name in your configuration to the host name and sends another query to the server. It repeats this process until the server successfully resolves a host name, or the software has sent a query with each domain name in your configuration appended to the host name.
| Enter . . . | To . . . |
|---|---|
| += domain_name | Add a domain name to the DNS configuration. The new domain name goes to the end of the list. |
| -= domain_name | Detach domain name from an interface. |