# IPv4/IPv6 Common Settings

### 1. Function Overview

This product is compatible with the following network environment settings that are common to IPv4 and IPv6, mainly for the purpose of maintenance (configuring the settings of the switch).

1. DNS client settings

### 2. Definition of Terms Used

None

### 3. Function Details

#### 3.1. DNS client settings

This product supports DNS (Domain Name System) clients.
If an FQDN (Fully Qualified Domain Name) has been set for an NTP server or a syslog server, an inquiry is made to the DNS server to retrieve the IPv4/IPv6 address.

This product provides the following DNS client control functions.

- Set IP address of the DNS server

- Set default domain name

- Set search domain list

Inquiries to the DNS server are enabled by default, and the setting can be changed by using the dns-client enable/disable command.

##### 3.1.1. Set IP address of the DNS server

Up to three IP addresses can be set for the DNS server, using the methods shown below.

- Manual setting using the dns-client name-server command

  - This lets you specify the IPv4/IPv6 address.

- Automatic setting via DHCP

This product always gives priority to the information that was set via commands.
Check the configured DNS servers by using the show dns-client command.

##### 3.1.2. Set default domain name

Only one default domain can be set using the methods shown below. The domain can be specified using up to 256 characters.

- Manual setting using the dns-client domain-name command

- Automatic setting via DHCP

Just as with DNS server IP addresses, this product prioritizes information specified with commands.
Check the default domain that was set by using the show dns-client command.
The use of a default domain is only allowed if there are no listings in the search domain list.

##### 3.1.3. Set search domain list

This product uses a search domain list to manage the domain names used when inquiring with the DNS.
Up to six domain names can be set on the search domain list using the method below.

- Manual setting using the dns-client domain-list command

The search domain list that has been set can be checked using the show dns-client command.
The search domain list must be within 255 characters total for all domain names registered.

### 4. Related Commands

Related commands are indicated below.
For command details, refer to the command reference.

Function types | Operations | Operating commands
--- | --- | ---
DNS client settings | DNS client settings | dns-client enable/disable
Set DNS server address | dns-client name-server
Set default domain name | dns-client domain-name
Set search domain list | dns-client domain-list
Show DNS client settings | show dns-client

### 5. Examples of Command Execution

#### 5.1. DNS client settings

Set DNS client settings for this product to prepare an environment for DNS queries.

- Specify 192.168.100.1 and 192.168.100.2 as the IP addresses of the servers for DNS queries.

- Specify example.com as the default domain used for DNS queries.

■ Setting Procedure

1. Enable the DNS query functionality.

       Yamaha(config)#dns-client enable

   - Since this is specified as the default value, we do not need to set this specifically.

2. Specify the DNS servers.

       Yamaha(config)#dns-client name-server 192.168.100.1
       Yamaha(config)#dns-client name-server 192.168.100.2

3. Set the default domain.

       Yamaha(config)#dns-client domain-name example.com

4. Check the DNS client information that was set.

       Yamaha#show dns-client

       DNS client is enabled
        Default domain  : example.com
        Domain list     :
        Name Servers    : 192.168.100.1 192.168.100.2

        * - Values assigned by DHCP Client.

### 6. Points of Caution

None

### 7. Related Documentation

None

Search result
No more search results.
There are no topics that match your search query.