Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dns): support fixed domain ttl #100

Merged
merged 2 commits into from
May 30, 2023
Merged

feat(dns): support fixed domain ttl #100

merged 2 commits into from
May 30, 2023

Conversation

mzz2017
Copy link
Contributor

@mzz2017 mzz2017 commented May 27, 2023

Background

Some DDNS domains want to disable DNS cache or want less TTL.

Checklist

Full changelog

  1. Remove min 120 ttl limit.
  2. Allow to overwrite TTL of specific domains.
  3. Remove protection that new cache deadline must be greater than old one.

See (in dns section)

dae/example.dae

Lines 119 to 125 in a26f054

# Give a fixed ttl for domains. Zero means that dae will request to upstream every time and not cache DNS results
# for these domains.
#fixed_domain_ttl {
# ddns.example.org: 10
# test.example.org: 3600
#}

Issue reference

Fix #96

@mzz2017 mzz2017 requested a review from a team as a code owner May 27, 2023 05:47
@piyoki piyoki added the feature label May 27, 2023
docs/dns.md Show resolved Hide resolved
@mzz2017 mzz2017 merged commit b936e7a into main May 30, 2023
@mzz2017 mzz2017 deleted the feat_fixed_domain_ttl branch May 30, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DNS缓存仍然有些问题
2 participants