[Input mode]
global configuration mode
[Description]
Specifies the default domain name used for DNS queries.
If this command is executed with the "no" syntax, the default domain name is deleted.
[Note]
The setting of this command takes priority if the default domain name (option code 15) was obtained from the DHCP server by
the
ip address dhcp
command.
If a search domain list is specified by the
dns-client domain-list
command, the default domain name specified by this
command and the default domain name automatically specified by the
ip address dhcp
command are not used.
[Example]
Set the default domain name to "example.com".
SWR2311P(config)#dns-client domain-name example.com
7.12 Set search domain list
[Syntax]
dns-client
domain-list
name
no
dns-client
domain-list
name
[Parameter]
name
:
Domain name (maximum 255 characters)
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Adds a domain name to the list of domain names used for DNS queries.
Up to six domains can be registered in the search domain list.
If this command is executed with the "no" syntax, the specified domain name is deleted from the search domain list.
[Note]
If a search domain list is specified by this command, the default domain name specified by the
dns-client domain-name
command and the default domain name automatically specified by the
ip address dhcp
command are not used.
[Example]
Add the domain names "example1.com" and "example2.com" to the search domain list.
SWR2311P(config)#dns-client domain-list example1.com
SWR2311P(config)#dns-client domain-list example2.com
7.13 Show DNS client information
[Syntax]
show
dns-client
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the DNS client information.
The following content is shown.
Item
Description
DNS Client is enabled
Enable the DNS client
DNS Client is disabled
Disable the DNS client
Command Reference | Layer 3 functions |
207