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

ddns go获取到的ip地址有误 #1286

Open
jz0108 opened this issue Oct 21, 2024 · 17 comments
Open

ddns go获取到的ip地址有误 #1286

jz0108 opened this issue Oct 21, 2024 · 17 comments
Labels
bug Something isn't working

Comments

@jz0108
Copy link

jz0108 commented Oct 21, 2024

Description

2024/10/21 21:01:39 查询域名信息发生异常!
2024/10/21 21:01:49 新增域名解析 xxxx8.com 成功! IP: 123.178.212.114
2024/10/21 21:06:49 IPv4未改变, 将等待 5 次后与DNS服务商进行比对.

但是实际的公网ip地址不是这个,https://myip.ipip.net, https://ddns.oray.com/checkip, https://ip.3322.net, https://v4.yinghualuo.cn/bejson这几个都可以获取到正确的ip地址,但是不知道ddsngo里的ip是从哪里来的。

pve虚拟机100,安装的爱快,103安装的ddns go,这种情况下,怎么弄命令获取ip地址?

DNS Provider

阿里云

Did you search for similar issues before submitting this one?

Yes, I did, but I didn't find anything useful

Operating System

Linux

Architecture

x86_64

Version

v6.7.2

How are you running ddns-go?

Docker

Any other information

No response

@jz0108 jz0108 added the bug Something isn't working label Oct 21, 2024
@jeessy2
Copy link
Owner

jeessy2 commented Oct 21, 2024

通过接口获取的,那个是接口地址

@jz0108
Copy link
Author

jz0108 commented Oct 21, 2024

但是单独打开任意接口,识别的ip地址都是正确的

@jz0108
Copy link
Author

jz0108 commented Oct 21, 2024

@jeessy2
Copy link
Owner

jeessy2 commented Oct 21, 2024

请求阿里云超时,检查下网络

@jz0108
Copy link
Author

jz0108 commented Oct 21, 2024

网络没问题,而且能把这个123.178.212.114地址同步到阿里云域名上

@jeessy2
Copy link
Owner

jeessy2 commented Oct 21, 2024

那对的啊,啥问题?

@jz0108
Copy link
Author

jz0108 commented Oct 21, 2024

我的公网ip为121.57.166.139,ddns go里选择的接口获取,然后就会将123.178.212.114同步到阿里云域名上。

如果挨个打开ddns go里接口里的网址,识别到的都是121.57.166.139,但是同步到阿里云的就是123.178.212.114

@jz0108
Copy link
Author

jz0108 commented Oct 21, 2024

所以,我想知道ddns go在103虚拟机里,op在100虚拟机里,这种情况下,如果获取ipv4地址,命令该怎么填写,我尝试了好多次,都已失败告终

@jeessy2
Copy link
Owner

jeessy2 commented Oct 21, 2024

日志提示的是那个

@jeessy2
Copy link
Owner

jeessy2 commented Oct 21, 2024

你几条宽带?

@jz0108
Copy link
Author

jz0108 commented Oct 21, 2024

2024/10/21 21:29:16 你的IP 123.178.212.114 没有变化, 域名 xxx.xx
2024/10/21 21:34:17 IPv4未改变, 将等待 5 次后与DNS服务商进行比对

我只有一条宽带

@jeessy2
Copy link
Owner

jeessy2 commented Oct 21, 2024

浏览器打开是地址是那个IP

@jz0108
Copy link
Author

jz0108 commented Oct 21, 2024

浏览器打开是121.57.166.139,而且接口里的地址打开也是显示121.57.166.139,但是ddns go里就显示 123.178.212.114,且同步到阿里云里也是 123.178.212.114

@jeessy2
Copy link
Owner

jeessy2 commented Oct 21, 2024

用ddns-go那台电脑测试

@jz0108
Copy link
Author

jz0108 commented Oct 21, 2024

ubuntu命令我不太会,用这个wget -qO- https://myip.ipip.net获取到的ip为121.57.166.139,其他的命令不会。

环境是pve下lxc ubuntu,然后安装的docker,ddns go。我是真不会用这个虚拟机测

@jeessy2
Copy link
Owner

jeessy2 commented Oct 21, 2024

自己研究一下了,对你的网络环境不了解

@jz0108
Copy link
Author

jz0108 commented Oct 21, 2024

好吧,感谢,我挨个重装试试吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants