dns-server(Bas IP address pool view)

Function

The dns-server command enables the system to assign an IP address in the address pool to the DNS server of the client.

The undo dns-server command removes the IP address in the address pool to the DNS server of the client.

By default, no IP address of the DNS server is configured.

This command is supported only on the NetEngine 8000 F1A.

Format

dns-server ip-address &<1-8>

undo dns-server { ip-address | all }

Parameters

Parameter Description Value
ip-address

Specifies the IP address of a DNS server.

The value is in dotted decimal notation. A maximum of eight DNS server addresses can be configured, separated by space.

The first configured ip-address is of top priority.

all

Deletes all DNS server addresses.

-

Views

Bas IP address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ippool write

Usage Guidelines

Usage Scenario

Before a host accesses the Internet, the DNS server needs to be used to resolve a domain name to an IP address. To allow a DHCP client to properly access the Internet, run the dns-server command to configure the IP address of a DHCP server so that the DHCP server can send DNS server addresses to DHCP clients through Option 6.

If DNS server addresses have been configured in an address pool, running the dns-server command adds new DNS server addresses but does not delete the configured ones. To delete the configured ones, run the undo dns-server command.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

# Set DNS server addresses to 1.1.1.1 and 2.2.2.2 for an address pool named huawei.
<HUAWEI> system-view
[~HUAWEI] ip pool huawei server
Info: It's successful to create an IP address pool
[*HUAWEI-ip-pool-huawei] commit
[~HUAWEI-ip-pool-huawei] dns-server 1.1.1.1 2.2.2.2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >