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

如何把DDNS动态域名不缓存,请指教 #37

Closed
duqn opened this issue Nov 23, 2023 · 1 comment
Closed

如何把DDNS动态域名不缓存,请指教 #37

duqn opened this issue Nov 23, 2023 · 1 comment

Comments

@duqn
Copy link

duqn commented Nov 23, 2023

DDNS动态域名IP更换频繁,缓存时间长,如何指定一些域名不缓存呢

@duqn duqn changed the title 如何把DDNS域名不缓存,请指教 如何把DDNS动态域名不缓存,请指教 Nov 23, 2023
@pmkol
Copy link
Owner

pmkol commented Nov 27, 2023

# 调整TTL的插件
- tag: ttl_5s
  type: ttl
  args:
    minimal_ttl: 1
    maximum_ttl: 5
        # 强制用本地服务器解析
        - if: query_is_cn_domain
          exec:
            - forward_local
            - ttl_5s
            - _return

可以手动增加一个ttl_5s的插件,修改"强制用本地服务器解析"中的ttl_5m为ttl_5s,然后把DDNS动态域名放在ecs_cn_domain.txt名单里,变相实现不缓存的效果

@pmkol pmkol closed this as completed Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants