jeessy2 / ddns-go

Simple and easy to use DDNS. Support Aliyun, Tencent Cloud, Dnspod, Cloudflare, Callback, Huawei Cloud, Baidu Cloud, Porkbun, GoDaddy, Namecheap, NameSilo...
MIT License
11.53k stars 1.32k forks source link

[功能]:aliyun解析时有解析请求来源(ISP)选择 #677

Closed jim66707a closed 1 year ago

jim66707a commented 1 year ago

功能描述

我添加一个IPV6的默认解析到阿里云时,可用移动宽带或移动网络时可以正常访问主机,就是用电信网无法访问到,后来手动在阿里云上添加了一条解析解析请求来源(ISP)选择中国电信,用电信网也可以访问了,但这个DDNS的默认解析IPV6地址变了后,又要手动去改电信这条解析,能不能自动再添加一个解析 解析请求来源(ISP)为中国电信的

解决的问题

No response

附加信息

No response

WaterLemons2k commented 1 year ago

https://github.com/jeessy2/ddns-go/wiki/传递自定义参数#aliyun

通过Line参数修改

jim66707a commented 1 year ago

代码是写在DDNS-GO 的Domains里面hossin.work?Line=telecom 这样写代码出错

WaterLemons2k commented 1 year ago

代码是写在DDNS-GO 的Domains里面hossin.work?Line=telecom 这样写代码出错

报错是什么?

jim66707a commented 1 year ago

2023/04/24 20:37:34 请求接口 https://alidns.aliyuncs.com/ 失败! 返回内容: {"RequestId":"076F2332-FF8F-5F9C-B8CB-D545DB384573","Message":"Specified signature is not matched with our calculation. server string to sign is:GET&%2F&AccessKeyId%3DLTAI5tPHUDpBwS8dDBgQ6Z7g%26Action%3DDescribeSubDomainRecords%26DomainName%3Dhossin.work%2520Line%253Dtelecom%26Format%3DJSON%26SignatureMethod%3DHMAC-SHA1%26SignatureNonce%3D1682339854703132687%26SignatureVersion%3D1.0%26SubDomain%3D%2540.hossin.work%2520Line%253Dtelecom%26Timestamp%3D2023-04-24T12%253A37%253A34Z%26Type%3DAAAA%26Version%3D2015-01-09","Recommend":"https://next.api.aliyun.com/troubleshoot?q=SignatureDoesNotMatch&product=Alidns","HostId":"alidns.aliyuncs.com","Code":"SignatureDoesNotMatch"} ,返回状态码: 400

WaterLemons2k commented 1 year ago

DomainName%3Dexample.com%2520Line%253Dtelecom

看起来域名和参数 Line 中间有一个空格(%20),将空格改为问号(?)看看。

- example.com Line=telecom
+ example.com?Line=telecom

参考:https://www.w3schools.com/tags/ref_urlencode.ASP

jim66707a commented 1 year ago

空格换成了?还是一样 2023/04/25 21:26:04 请求接口 https://alidns.aliyuncs.com/ 失败! 返回内容: {"RequestId":"4BB78202-3E8C-5261-A395-CD3EC2974589","HostId":"alidns.aliyuncs.com","Code":"InvalidDomainName.Format","Message":"Invalid domain name.","Recommend":"https://next.api.aliyun.com/troubleshoot?q=InvalidDomainName.Format&product=Alidns"} ,返回状态码: 400

WaterLemons2k commented 1 year ago

空格换成了?还是一样

是全角,换成半角(?)看看。

jim66707a commented 1 year ago

哦,我输入的是英文的?

WaterLemons2k commented 1 year ago

那截图 Domains 看下,敏感信息打码。

jim66707a commented 1 year ago

image

jeessy2 commented 1 year ago

版本不对。你用的版本不支持,升级

jim66707a commented 1 year ago

更新了又有新问题了。。。。。。 2023/04/26 00:13:38 连接失败! 点击查看接口能否返回IPv6地址, 参考说明:点击访问

jeessy2 commented 1 year ago

日志贴多点。把https://myip6.ipip.net/移除

jim66707a commented 1 year ago

2023/04/26 17:40:39 配置文件已保存在: /root/.ddns_go_config.yaml 2023/04/26 17:40:39 连接失败! 点击查看接口能否返回IPv6地址, 参考说明:点击访问 2023/04/26 17:40:39 错误信息: Get "https://speed.neu6.edu.cn/getIP.php": dial tcp6 [2001:da8:9000::66]:443: connect: cannot assign requested address 2023/04/26 17:40:39 连接失败! 点击查看接口能否返回IPv6地址, 参考说明:点击访问 2023/04/26 17:40:39 错误信息: Get "https://v6.ident.me": dial tcp6 [2a01:4f8:c0c:bd0a::1]:443: connect: cannot assign requested address 2023/04/26 17:40:39 未能获取IPv6地址, 将不会更新

jim66707a commented 1 year ago

image

jeessy2 commented 1 year ago

测下你IPv6通不通?通过网卡获取有IPv6地址没有

jim66707a commented 1 year ago

nas是有ipV6地址的,手动用ipV6解释可以打开,docker没有ipv6 image

jeessy2 commented 1 year ago

自行设置一下。没v6怎么通讯😂

jim66707a commented 1 year ago

这个新增一个网络ipv6的子网和网关要怎么填的 image 我这样填进去网卡的地址不对。。 image

WaterLemons2k commented 1 year ago

不用新建网络吧,试下 使用与 Docker Host 相同的网络

https://github.com/jeessy2/ddns-go#使用ipv6

jim66707a commented 1 year ago

image host是灰色的管理也点不了

WaterLemons2k commented 1 year ago

删除现有的容器(备份配置文件),然后点击映像 -> 选择jeessy/ddns-go -> 启动 -> 高级设置 -> 网络中勾选使用与 Docker Host 相同的网络,高级设置中勾选启动自动重新启动

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove Stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.