User Manual

Table Of Contents
[Example]
Set the default domain name to "example.com".
SWR2311P(config)#dns-client domain-name example.com
7.11.4 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.11.5 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
Default domain Default domain name
Domain list Search domain list
Name Servers DNS server list (IP address)
[Example]
Show the DNS client information.
SWR2311P>show dns-client
DNS client is enabled
Default domain : example.com
Domain list : example1.com example2.com
Name Servers : 192.168.100.1 2001:db8::1234 fe80::2a0:deff:fe11:2233%vlan1
Command Reference | Layer 3 functions | 231