100
DWS-1008 User’s Manual
D-Link Systems, Inc.
Configuring and Managing IP Interfaces and Services
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 an Switch to use one primary DNS server and up to five secondary DNS
servers to resolve DNS queries.
The Switch always sends a request to the primary DNS server first. The Switch 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 Switch appends the
default domain name to hostnames you enter in commands. For example, you can configure
the 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 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.