openresty / openresty/lua-resty-dns

How to get the fixed TTL?

Open
#54 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
338
Forks
107
Avg merge
1h 29m
Merged PRs (30d)
2

Description

I get the TTL from Google DNS server (8.8.8.8) via query method is dynamic, it will decrease the TTL every time I call this function, until 0.

How to get the domain original TTL, which is set by DNS owner?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the query method and inspect how the DNS response TTL is exposed. Use the reported behavior with Google DNS at 8.8.8.8 to determine whether the resolver can provide the domain's configured TTL rather than the remaining TTL; done means the supported behavior or required change is clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.