User Manual

[Note]
If the ip address dhcp command was used to obtain the DNS server list from the DHCP server, the setting of this command
takes priority.
However if fewer than three items were registered to the DNS server list by this command, up to a total of three items of the
DNS server list obtained from the DHCP server are added to the end of this list.
[Example]
Add the IP addresses 192.168.100.1, 2001:db8::1234, and fe80::2a0:deff:fe11:2233 to the DNS server list.
SWR2311P(config)#dns-client name-server 192.168.100.1
SWR2311P(config)#dns-client name-server 2001:db8::1234
SWR2311P(config)#dns-client name-server fe80::2a0:deff:fe11:2233%vlan1
7.11.3 Set default domain name
[Syntax]
dns-client domain-name name
no dns-client domain-name name
[Parameter]
name : Domain name (maximum 255 characters)
[Initial value]
none
[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.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.
Command Reference | Layer 3 functions | 221