User Manual

IPv4 addtess of the DNS server
: X:X::X:X
IPv6 address of the DNS server
If you specify an IPv6 link local address, you must also specify the output interface (fe80::X%vlanN
format)
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Adds a server to the DNS server list.
Up to three servers can be specified.
If this command is executed with the "no" syntax, the specified server is deleted from the DNS server list.
[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.
SWR2310(config)#dns-client name-server 192.168.100.1
SWR2310(config)#dns-client name-server 2001:db8::1234
SWR2310(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".
SWR2310(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
Command Reference | Layer 3 functions | 223