No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
ttl

ttl

Function

The ttl command configures the storage time of static resource records in the DNS zone.

The undo ttl command restores the default storage time of static resource records in the DNS zone.

By default, the storage time of static resource records in the DNS zone is 1200 seconds.

Format

ttl ttl-value

undo ttl

Parameters

Parameter

Description

Value

ttl-value

Specifies the storage time of static resource records in the DNS zone.

The value is an integer ranging from 0 to 259200, in seconds.

Views

DNS zone view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Static resource records in the DNS zone can be saved in the cache. For example, after the storage time of static resource records in the DNS zone is configured on the device functioning as the DNS proxy, a client sends a DNS protocol packet to obtain the storage time. The client saves the parsed mapping between a domain name and an IP address in the cache each time the client uses the static resource records configured in the DNS zone. When the client queries records based on the same domain name next time, it can directly read the records from the cache, without repeatedly sending a request to the DNS proxy. The mappings saved in the client's cache will be aged and deleted after the storage time expires, so that the static resource records can be updated in real time.

You can run the display dns zone zone-name command to check the currently configured storage time of static resource records in the DNS zone.

Prerequisites

A DNS zone has been created using the dns zone zone-name command.

Example

# In the DNS zone com, configure the storage time of static resource records to 1300 seconds.

<Huawei> system-view
[Huawei] dns zone com
[Huawei-dns-zone-com] ttl 1300
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 194846

Downloads: 118

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next