写着玩 支持 Telegram 通知
感觉可以一个月执行一次
https://gist.githubusercontent.com/xream/9b68a2a4fb9b704732fee22c23729fef/raw/renew-dnshe-subdomains.sh
- 👍2
[General]
use-local-host-item-for-proxy = true
q o-o.myaddr.l.google.com TXT @tls://8.8.4.4 --format=json | yq eval '.[] | .replies[].answer[].txt[] | select(test("edns0-client-subnet"))' | naliJSON=1 RRTYPE=TXT dnslookup o-o.myaddr.l.google.com tls://8.8.4.4 | yq '.Answer | map(.Txt) | flatten | map(. | select(. == "*edns*"))'|nali
[IPv6] 前缀
if(ProxyUtils.isIPv6($server.server)) {
$server.name = `[IPv6] ${$server.name}`
}
// 还原节点域名
if ($server._domain) $server.server = $server._domain
edns 填写 auto 可以配合 网络信息模块 自动取国内公网 IP节点操作 - 域名解析 先处理下[General]
use-local-host-item-for-proxy = true
DOMAIN-SUFFIX 和 DOMAIN 拆出来了, 但是实际使用时, 可能不会直接分别分流到国内/外 DNSuse-local-host-item-for-proxy 仅对 IP 映射生效
[General]
use-local-host-item-for-proxy = true
[Host]
githubusercontent.com = server:https://9.9.9.11/dns-query
github.com = server:https://9.9.9.11/dns-query
google.com = server:https://9.9.9.11/dns-queryuse-local-host-item-for-proxycloudflare-utils --api-token 你的Token --zone-name 你的域名 dns-purgeconst dns = 'https://223.6.6.6/dns-query' // DNS
const timeout = 2 * 1000 // 超时时间
const type = ['A', 'AAAA'] // 默认查询类型
const ttl = 600 // 默认最小 TTL