beautypg.com

Configuring a default domain name, Adding the default domain name, Removing the default domain name – 3Com WX4400 3CRWX440095A User Manual

Page 122: Displaying dns server information

background image

122

C

HAPTER

6: C

ONFIGURING

AND

M

ANAGING

IP I

NTERFACES

AND

S

ERVICES

Configuring a Default

Domain Name

You can configure a single default domain name for DNS queries. The
WX switch appends the default domain name to hostnames you enter in
commands. For example, you can configure the WX switch 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 WX switch automatically
requests the DNS server to send the IP address for chris.example.com.

To override the default domain name when entering a hostname in a CLI
command, enter a period at the end of the hostname. For example, if the
default domain name is example.com, enter chris. if the hostname is
chris and not chris.example.com.

Aliases take precedence over DNS. When you enter a hostname, MSS
checks for an alias with that name first, before using DNS to resolve the
name. (For information about aliases, see “Configuring and Managing
Aliases” on page 123.)

Adding the Default Domain Name

To add the default domain name, use the following command:

set ip dns domain name

Specify a domain name of up to 64 alphanumeric characters.

Removing the Default Domain Name

To remove the default domain name, use the following command:

clear ip dns domain

Displaying DNS

Server Information

To display DNS server information, use the following command:

display ip dns

The following example shows DNS server information on a WX switch
configured to use three DNS servers.

WX1200# display ip dns

Domain Name: example.com

DNS Status: enabled

IP Address

Type

-----------------------------------

10.1.1.1

PRIMARY

10.1.1.2

SECONDARY

10.1.2.1

SECONDARY

(For information about the fields in the output, see the

Wireless LAN

Switch and Controller Command Reference

.)