System information

67
DWS-1008 CLI Reference Guide
D-Link Systems, Inc.
IP Services Commands
set ip dns domain (continued)
Syntax: set ip dns domain name
name Domain name of between 1 and 64 alphanumeric characters with no spaces
(for example, example.org).
Defaults: None
Access: Enabled
Usage: 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 fully qualified 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.
Examples: The following command configures the default domain name example.com:
DWS-1008# set ip dns domain example.com
Domain name changed
set ip dns server
Specifies a DNS server to use for resolving hostnames you enter in CLI commands.
Syntax: set ip dns server ip-addr {primary | secondary}
ip-addr IP address of a DNS server, in dotted decimal or CIDR notation.
primary Makes the server the primary server, which MSS always consults first for
resolving DNS queries.
secondary Makes the server a secondary server. MSS consults a secondary server only
if the primary server does not reply.
Defaults: None
Access: Enabled
Usage: You can configure a DWS-1008 switch to use one primary DNS server and up to five
secondary DNS servers.