跳转到主要内容

TTL计算器

将以秒为单位的TTL值转换为可读时长,并计算从给定起始时间的精确到期时间。

Inputs

Enter a TTL in seconds (0 = no cache)

Leave blank to use current time. Format: YYYY-MM-DD HH:MM:SS

TTL Details

Results will appear here.

DNS Time-To-Live values are specified in seconds, but human-readable durations (hours, minutes, days) are far easier to reason about when setting cache policies or planning maintenance windows. A TTL of 86400 seconds is a 24-hour cache lifetime — easy to misread or miscalculate when you are working quickly under pressure.

This tool converts any TTL value in seconds to a clear, human-readable breakdown (days, hours, minutes, seconds) and also converts in the reverse direction, accepting a natural-language duration and outputting the equivalent seconds for use in DNS zone files or API calls.

如何使用 TTL 计算器

  1. 1

    输入 TTL 值

    以秒为单位输入 TTL 值(例如 3600),或者输入时间单位(例如 1 小时)让工具转换为秒数。

  2. 2

    查看时间转换

    工具将 TTL 秒数转换为人类可读的时间格式(秒、分钟、小时、天),帮助您理解缓存持续时间。

  3. 3

    选择合适的 TTL

    根据业务需求参考建议的 TTL 范围:稳定记录(如 MX)建议 1–24 小时;计划变更的记录建议提前降至 5 分钟。

How DNS TTL Affects Caching

TTL is a 32-bit unsigned integer in DNS resource records (RFC 1035) representing the number of seconds a resolver may cache the record. When a resolver fetches a record, it stores it with a countdown timer initialised to the TTL. Any subsequent query within that window is answered from cache; after expiry, the resolver must fetch a fresh copy from the authoritative server.

TTL strategy involves a trade-off: high values (86400s = 1 day) reduce DNS query load and speed up responses for end users, but slow down propagation of changes. Low values (60–300s) enable rapid changes — important before migrations — but increase authoritative query volume and may degrade performance for users served by distant or slow resolvers.

为什么选择 FileCrank TTL 计算器

  • ✓ 秒数与时间单位(分钟、小时、天)双向转换
  • ✓ 提供常见 DNS 记录类型的 TTL 建议值
  • ✓ 完全在浏览器中运行——不传输数据
  • ✓ 免费使用,无需注册
  • ✓ 适用于 DNS 管理和迁移规划

功能与规格

最大文件大小
最大 100 MB
隐私
文件在约一小时后删除
价格
免费,无需注册
处理方式
服务器端
Processing
100% client-side
Input format
TTL in seconds; optional start time
Output format
Duration and expiry timestamp
Cost
Free — no limits
计算在您的浏览器中本地完成——不向服务器发送数据。无需注册。免费——无隐藏费用。

常见问题

How do I use the TTL Calculator?

Enter a TTL value in seconds (e.g., 3600) and the tool instantly converts it to a human-readable duration (1 hour). You can also enter a start time to calculate the exact expiry date and time.

What is DNS TTL?

TTL (Time To Live) is a value in DNS records that specifies how long other DNS servers should cache the record before querying the authoritative nameserver again. Lower TTLs = more frequent updates; higher TTLs = better performance but slower updates.

How does TTL affect DNS propagation?

Higher TTL values mean cached records persist longer, slowing DNS propagation of changes. Before making DNS changes, lower your TTL to 300–600 seconds, wait 24 hours, make the change, then restore your original TTL.

What TTL should I set for my DNS records?

Standard practice is 3600 seconds (1 hour) for stable records. For frequently changing records, use 300–900 seconds. During domain migrations or testing, use 300 seconds for rapid updates. Be conservative (86400+ seconds) only for rarely-changed records.

Does the calculator send my TTL data anywhere?

No. All TTL conversions run entirely in your browser. Your DNS configuration data never contacts any server.

What does it mean if my TTL is very high (86400+)?

A very high TTL (24+ hours) means DNS records are cached for a long time, improving performance but making changes slow to propagate. This is appropriate only for stable records that rarely change.

TTL Calculator vs. Manual Division

Dividing seconds by 3600 and 86400 in your head is fast enough for round numbers but introduces errors for values like 43200 (12 hours) or 14400 (4 hours). This tool eliminates the arithmetic, presents the result in a clear decomposed format, and supports reverse conversion — useful when a runbook says 'set TTL to 5 minutes' and you need the exact seconds value for a zone file.

FileCrank TTL 计算器将 DNS TTL 秒数转换为人类可读的时间格式,并提供常见 DNS 记录类型的 TTL 建议值。计算在浏览器本地完成,不存储数据。免费使用,无需账户。

Advertisement

Ad