Nortel Networks 2300 Switch User Manual


 
136 Configuring and managing IP interfaces and services
NN47250-500 (320657-F Version 02.01)
Configuring and managing DNS
You can configure a WSS to use a Domain Name Service (DNS) server to resolve hostnames into their IP addresses.
This capability is useful in cases where you specify a hostname instead of an IP address in a command.
For example, as an alternative to the command ping 192.168.9.1, you can enter the command ping chris.example.com.
When you enter ping chris.example.com, the WSS's DNS client queries a DNS server for the IP address that corre-
sponds to the hostname chris.example.com, then sends the ping request to that IP address.
The WSS switch’s DNS client is disabled by default. To configure DNS:
Enable the DNS client.
Specify the IP addresses of the DNS servers.
Configure a default domain name for DNS queries.
Enabling or disabling the DNS client
The DNS client is disabled by default. To enable or disable the DNS client, use the following command:
set ip dns {enable | disable}
Configuring DNS servers
You can configure a WSS to use one primary DNS server and up to five secondary DNS servers to resolve DNS queries.
The WSS always sends a request to the primary DNS server first. The WSS sends a request to a secondary DNS server
only if the primary DNS server does not respond.
Adding a DNS server
To add a DNS server, use the following command:
set ip dns server ip-addr {primary | secondary}
Removing a DNS server
To remove a DNS server, use the following command:
clear ip dns server ip-addr
Configuring a default domain name
You can configure a single default domain name for DNS queries. The WSS appends the default domain name to
hostnames you enter in commands. For example, you can configure the WSS to automatically append the domain name
example.com to any hostname that does not have a domain name. In this case, you can enter ping chris instead of ping
chris.example.com, and the WSS automatically requests the DNS server to send the IP address for chris.example.com.