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

fix: switch primary and secondary DNS server for CN user #169

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

dkeven
Copy link
Collaborator

@dkeven dkeven commented Mar 12, 2025

If we need to alter the user's DNS server config during installation, first check if it's a CN user by match the registry mirrors against CN mirrors provided by Olares, and switch the secondary 114.114.114.114 DNS server with the primary 1.1.1.1 DNS server if true. This can help CN users to resolve to nearest CDN rather than the default one.

@dkeven dkeven merged commit 0d7a582 into main Mar 12, 2025
1 check passed
@dkeven dkeven deleted the fix/switch_dns branch March 12, 2025 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants