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

实现IPv6解析并更新DNS #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

schlibra
Copy link

我尝试在原脚本的基础上修改,实现了IPv6获取并更新DNS解析

@w43322
Copy link

w43322 commented Sep 14, 2024

赞,但是最好可以实现A记录和AAAA记录共存

@@ -46,6 +46,7 @@ resolve2ip() {
}

check_tencentddns() {
return 1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里为什么提早return了

@@ -91,15 +92,15 @@ get_recordid2() {
}

query_recordid() {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最好改成共存

else
ip=$(ubus call network.interface.$iface status | grep '"address"' | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
#ip=$(ubus call network.interface.$iface status | grep '"address"' | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | head -1)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不需要的代码可以删掉

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

Successfully merging this pull request may close these issues.

2 participants