Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

纯AAAA解析时用本地网卡获取不到ip #46

Closed
Curious-r opened this issue Jun 21, 2021 · 7 comments
Closed

纯AAAA解析时用本地网卡获取不到ip #46

Curious-r opened this issue Jun 21, 2021 · 7 comments
Labels

Comments

@Curious-r
Copy link

[06/21/2021 17:48:50]从 读取网卡IPv6设置 获取公网IPv6失败。
[06/21/2021 17:48:50]获取公网IPv6失败,所有API接口均无法返回IPv6地址。
[06/21/2021 17:48:51]成功获取raspberrypi.curious.host的所有记录,共0条。
[06/21/2021 17:48:51]增加AAAA记录raspberrypi.curious.host时发生异常: Aliyun.Acs.Core.Exceptions.ClientException: MissingValue : Value is mandatory for this action. + [ RequestId : 57C05E56-B074-4FC5-A81A-8AED3D0CED40 ]
   at Aliyun.Acs.Core.DefaultAcsClient.ParseAcsResponse[T](AcsRequest`1 request, HttpResponse httpResponse)
   at Aliyun.Acs.Core.DefaultAcsClient.GetAcsResponse[T](AcsRequest`1 request)
   at aliyun_ddns.DomainUpdater.AddRecord(IpType type, String domain, String ip)

设备是树莓派,有v6地址的

@sanjusss
Copy link
Owner

是在docker中运行的还是直接运行的?
docker中运行需要设置容器的网络模式为host。

@Curious-r
Copy link
Author

Curious-r commented Jun 22, 2021

是在docker中运行的还是直接运行的?
docker中运行需要设置容器的网络模式为host。

是docker运行的,设置确实是host呀,命令是这样的

docker run -d --restart=always --net=host \
    -e "AKID=*****" \
    -e "AKSCT=****" \
    -e "DOMAIN=****" \
    -e "ENDPOINT=cn-beijing" \
    -e "REDO=300" \
    -e "TTL=600" \
    -e "TIMEZONE=8.0" \
    -e "TYPE=AAAA" \
    -e "CHECKLOCAL=true" \
    sanjusss/aliyun-ddns

@sanjusss
Copy link
Owner

设置CHECKLOCAL为true时,需要同时设置IPV6NETS(这个设置的本意是防止获取到类似fe80之类的本地ip)

@Curious-r
Copy link
Author

设置CHECKLOCAL为true时,需要同时设置IPV6NETS(这个设置的本意是防止获取到类似fe80之类的本地ip)

可以了,感谢帮助!我第一次尝试的时候设置过这个参数,没生效,现在想想是因为多复制了个冒号。。。。

@Curious-r Curious-r reopened this Jun 22, 2021
@Curious-r
Copy link
Author

设置CHECKLOCAL为true时,需要同时设置IPV6NETS(这个设置的本意是防止获取到类似fe80之类的本地ip)

啊对了,还有个问题请教大佬,这个软件可以区分v6地址里的临时地址和DHCPv6分配的地址吗,我的设备上2408开头的公网地址也有好几个,就是标记不太一样,有的带mngtmpaddr之类的

@sanjusss
Copy link
Owner

啊对了,还有个问题请教大佬,这个软件可以区分v6地址里的临时地址和DHCPv6分配的地址吗,我的设备上2408开头的公网地址也有好几个,就是标记不太一样,有的带mngtmpaddr之类的

暂时不能。那几个地址使用起来没有本质区别

@Curious-r
Copy link
Author

啊对了,还有个问题请教大佬,这个软件可以区分v6地址里的临时地址和DHCPv6分配的地址吗,我的设备上2408开头的公网地址也有好几个,就是标记不太一样,有的带mngtmpaddr之类的

暂时不能。那几个地址使用起来没有本质区别

收到,感谢回复😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants