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

zerotier_moon 自动更新动态IPv4的请求 #2

Open
taipinghehe opened this issue Mar 11, 2021 · 3 comments
Open

zerotier_moon 自动更新动态IPv4的请求 #2

taipinghehe opened this issue Mar 11, 2021 · 3 comments

Comments

@taipinghehe
Copy link

您好
我了解到zerotier_moon目前不支持域名,以后也没有计划支持。
固定IPv4只能去买云服务器,所以想请问您能不能做一个动态更新IPv4的脚本。这样在自己家就可以搭建zerotier_moon了。
非常感谢

@dajiangfu
Copy link
Owner

可以,我试试,这个原理上不难,有时间我搞下

@dajiangfu
Copy link
Owner

如果你域名解析做好了的话可以试试把脚本中ip_addr=curl ipv4.icanhazip.com改成
blue "请输入绑定到本VPS的域名"
green "======================="
read your_domain
ip_addr=ping ${your_domain} -c 1 | sed '1{s/[^(]*(//;s/).*//;q}'

@dajiangfu dajiangfu reopened this Apr 13, 2021
@taipinghehe
Copy link
Author

谢谢您的帮助 我能看懂部分代码 有些还看不懂 如果没做成的时候我再联系您

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

No branches or pull requests

2 participants