Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

传递自定义参数

jeessy2 edited this page Mar 29, 2024 · 7 revisions

支持传递自定义参数,目前只实现如下DNS服务商:

Aliyun

example.com?Line=telecom
  • 一个域名支持多个IP

    • 新建两个相同的子域名,随便填个IP。这时你就有了这两个子域名的RecordID
    • RecordId通过 阿里云 -> 解析设置 -> F12 调试 -> 网络 -> list.json -> 预览 -> data
    • ddns-go上新建两个配置(当然可用相同的token),一个用@1获取第一个IP,一个用@2获取第二个IP。推送自定义参数在域名后加上?RecordId=xx
      example.com?RecordId=123
      
      example.com?RecordId=456
      
    • 只有 阿里云 和 DnsPod 的API支持RecordID参数。注,虽然腾讯云就是dnspod,但是RecordID参数不支持腾讯云的API
  • 可搭配更多参数

example.com?RecordId=xx&Line=oversea&Lang=en

Dnspod

example.com?record_line=境内
  • 一个域名支持多个IP(参考阿里云做法)
example.com?record_id=123
example.com?record_id=456
example.com?record_id=xx&record_line=境内&status=disable

Callback

  • URL或RequestBody参考, myid取Domains中的myid
https://mycallback.com?ip=#{ip}&domain=#{domain}&myid=#{myid}
  • Domains
example.com?myid=xx

Cloudflare

  • proxied (v4.2.2+)
example.com?proxied=true
  • 一个域名支持多个IP(ddns-go上新建两个配置(当然可用相同的token),一个用@1获取第一个IP,一个用@2获取第二个IP)
example.com?comment=YourComment1
example.com?comment=YourComment2
Clone this wiki locally