-
Notifications
You must be signed in to change notification settings - Fork 1.7k
传递自定义参数
jeessy2 edited this page May 18, 2025
·
8 revisions
支持传递自定义参数,目前只实现如下DNS服务商:
- 通过Line参数修改
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
- 通过record_line参数修改
example.com?record_line=境内
- 一个域名支持多个IP(参考阿里云做法)
example.com?record_id=123
example.com?record_id=456
- 可搭配更多参数
example.com?record_id=xx&record_line=境内&status=disable
- URL或RequestBody参考, myid取Domains中的myid
https://mycallback.com?ip=#{ip}&domain=#{domain}&myid=#{myid}
- Domains
example.com?myid=xx
- proxied (v4.2.2+)
example.com?proxied=true
- 一个域名支持多个IP(ddns-go上新建两个配置(当然可用相同的token),一个用@1获取第一个IP,一个用@2获取第二个IP)
example.com?comment=YourComment1
example.com?comment=YourComment2
-
精准匹配
只能有两个参数:
zone_id
和recordset_id
example.com?zone_id=ff8080828e3376c9018e5c014de99999&recordset_id=ff8080829427ecf801947e8779122222
-
条件匹配 可以有多个参数,详见官方文档
example.com?line_id=xxx&health_check_id=xxx