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

feat: custom DNS server #682

Merged
merged 2 commits into from
Apr 24, 2023
Merged

feat: custom DNS server #682

merged 2 commits into from
Apr 24, 2023

Conversation

WaterLemons2k
Copy link
Contributor

@WaterLemons2k WaterLemons2k commented Apr 19, 2023

See also #672 (comment) and termux/termux-app#869 (comment).

What does this PR do?

Support for custom DNS server. For example, you can customize the DNS server by running the following command:

./ddns-go -dns 1.1.1.1

Motivation

If the file /etc/resolv.conf does not exist for Unix, Go will use 127.0.0.1 or ::1 as the DNS server. Support for custom DNS server to resolve the issue.

Additional Notes

The solution may not be good enough, sorry.

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.

ARM平台DNS解析异常 [Bug]:
2 participants