< Home

dns server

Function

The dns server command configures an IP address for a DNS server.

The undo dns server command deletes the DNS server IP address.

By default, no DNS server IP address is configured.

Format

dns server ip-address

undo dns server [ ip-address ]

Parameters

Parameter

Description

Value

ip-address

Specifies the IP address of a DNS server.

The value is in dotted decimal notation.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

A maximum of six DNS servers can be specified on FW. During dynamic DNS resolution, query messages are sent to DNS servers based on the configuration sequence of DNS servers.

The system sends a query to the DNS server first configured. If no response is received in the specified period of time (which can be configured by running the dns forward retry-timeout) command, it resends the query twice. If receiving no response for the specified times (which can be configured by running the dns forward retry-number) command, the system sends the query to the next DNS server and so on.

Example

# Assign the IP address 10.2.0.70 to the DNS server.

<sysname> system-view
[sysname] dns server 10.2.0.70
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >