V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
请不要把任何和邀请码有关的内容发到 NAS 节点。

邀请码相关的内容请使用 /go/in 节点。

如果没有发送到 /go/in,那么会被移动到 /go/pointless 同时账号会被降权。如果持续触发这样的移动,会导致账号被禁用。
latifrons
V2EX  ›  NAS

使用 ddclient 动态域名解析到 1.0.1.1 的 bug

  •  
  •   latifrons · 2 天前 · 701 次点击
    突然发现自己 DDNS 域名挂掉了,原因是 ddclient 在依靠外部网站获取公网域名时,不仅解析 http body ,也解析 http header ,而 cloudflare 最近在 http header 里增加了一个 1.0.1.1 被 ddclient 误认为是外网 IP 了。

    如果你使用 cf 保护的服务,会被影响,例如
    https://icanhazip.com
    https://dynamicdns.park-your-domain.com/getip



    改成这个就好了
    https://ipinfo.io/ip

    或者参考以下两个帖子的做法
    https://github.com/ddclient/ddclient/issues/820
    https://github.com/ddclient/ddclient/issues/818
    1 条回复    2025-03-24 10:01:46 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4071 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 05:31 · PVG 13:31 · LAX 22:31 · JFK 01:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.