dns timeout

Function

The dns timeout command configures a DNS query response timeout period on a DNS client.

The undo dns timeout command restores the default DNS query response timeout period on a DNS client.

By default, the DNS query response timeout period on a DNS client is 5s.

Format

dns timeout interval-time

undo dns timeout

undo dns timeout interval-time

Parameters

Parameter Description Value
interval-time

Specifies a DNS query response timeout period, expressed in seconds.

The value is an integer ranging from 1 to 10.

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 adjust the DNS query response timeout period based on network conditions, run the dns timeout command. You can run the dns try command to configure the retransmission times for DNS query packets.

Example

# Set the DNS query response timeout period to 6s.
<HUAWEI> system-view
[~HUAWEI] dns timeout 6
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >