User Manual

Table Of Contents
[Example]
Add the IP addresses 192.168.100.1, 2001:db8::1234, and fe80::2a0:deff:fe11:2233 to the DNS server list.
SWP2(config)#dns-client name-server 192.168.100.1
SWP2(config)#dns-client name-server 2001:db8::1234
SWP2(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".
SWP2(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.
If the
ipv6 address dhcp, ipv6 dhcp client pd or ipv6 address autoconfig stateless command was used to obtain the query
domain list from the DHCP server, the setting for this command takes priority.
252 | Command Reference |
Layer 3 functions