set ip dns domain

Configures a default domain name for DNS queries. The switch appends the default domain name to domain names or hostnames you enter in commands.

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

See Also:

clear ip dns domain

clear ip dns server

set ip dns

set ip dns server

show ip dns

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-addrIP 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.

D-Link DWS-1008 CLI Manual

127

Page 130
Image 130
D-Link dws-1008 manual Set ip dns domain