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

No network connection when using mobile data #434

Open
DCsunset opened this issue Jan 7, 2025 · 2 comments
Open

No network connection when using mobile data #434

DCsunset opened this issue Jan 7, 2025 · 2 comments

Comments

@DCsunset
Copy link

DCsunset commented Jan 7, 2025

Hi,

When the phone is connected to WiFi, commands running in nix-on-droid have access to Internet.
But if I switch to mobile data, no Internet connection can be made (i.e. cannot connect to any IP address), while Termux still has Internet access.

@t184256
Copy link
Collaborator

t184256 commented Jan 8, 2025 via email

@DCsunset
Copy link
Author

DCsunset commented Jan 8, 2025

Thanks for the pointer. After further investigation, I found that it's indeed the DNS issue, which is mentioned in #2.
My case might be a bit different because it seems that my mobile operator only supports IPv6. That's why the hard-coded 1.1.1.1 and 8.8.8.8 fail to work.

If it's hard to get the the upstream DNS directly, is it okay to at least add an IPv6 DNS resolver to resolv.conf? It would help the people who have access to IPv6 only.

Or I think a better way is to expose the DNS config so the user can overwrite it.

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