beautypg.com

Setting a default domain name for the dns – Allied Telesis AT-FS970M Series User Manual

Page 357

background image

AT-FS970M Switch Command Line User’s Guide

357

Setting a Default Domain Name for the DNS

The switch allows you to save typing of the portion of a domain name in
the CLI by setting a default domain. Once you set a default domain for the
DNS, the DNS client appends this domain to incomplete host-names in
DNS requests. For example, you set “alliedtelesis.com” as a default
domain. When you type the command

ping host2

in the CLI, the switch

sends a DNS request for “host2.alliedtelesis.com.”

If any domain exists in the DNS list, the switch does not use the default
domain. The switch uses the default domain only when no domains are
specified in the DNS list.

To set “alliedtelesis.com” as a default domain name, use the IP DOMAIN-
NAME command:

awplus> enable
awplus# configure terminal
awplus(config)# ip domain-name alliedtelesis.com

To display the default domain, use the SHOW IP DOMAIN-NAME
command in the Privileged Exec mode:

awplus# show ip domain-name

Here is an example of the information the command displays.

Figure 84. Displaying the Default Domain

Also, the SHOW HOSTS command displays the default domain name
among other information:

awplus# show hosts

Here is an example of the information the command displays.

Figure 85. SHOW HOSTS Command Display

DNS default domain: alliedtelesis.com

DNS default domain: alliedtelesis.com