dns try

Function

The dns try command configures the number of retransmission times for DNS query packets on a DNS client.

The undo dns try command restores the default number of retransmission times for DNS query packets on a DNS client.

By default, a DNS client can retransmit DNS query packets twice.

Format

dns try times

undo dns try

undo dns try times

Parameters

Parameter Description Value
times

Specifies the number of retransmission times for DNS query packets on a DNS client.

The value is an integer ranging from 1 to 3.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dns write

Usage Guidelines

Usage Scenario

After a DNS client sends a DNS query request to a DNS server, it initializes the retransmission count and starts the DNS query response timer. If the timer expires, the retransmission count increases by 1. When the retransmission count exceeds the specified value, the client stops sending packets to this DNS server and starts sending query request packets to a next DNS server. To configure the number of retransmission times for DNS query packets, run the dns try command. You can run the dns timeout command to configure the DNS query response timer.

Example

# Set the number of retransmission times for DNS query packets on a DNS client to 3.
<HUAWEI> system-view
[~HUAWEI] dns try 3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >