nix-on-droid icon indicating copy to clipboard operation
nix-on-droid copied to clipboard

DNS settings are not picked up from Android

Open t184256 opened this issue 5 years ago • 7 comments

Currently DNS servers are set to 1.1.1.1 and 8.8.8.8 and that will cause problems with networks that block them. DNS settings should be picked up from Android, ideally with VPN support and runtime changes. I have no idea how to implement this at the moment.

t184256 avatar Mar 12 '19 15:03 t184256

Idea: maybe it's easier to run a DNS server on Android and use it from inside Nix-on-Droid?

t184256 avatar Jul 14 '19 11:07 t184256

I am also having this issue.

io12 avatar Feb 19 '20 19:02 io12

I have the same issue

I think termix found a way to do it: https://github.com/termux/termux-app/issues/130

rambip avatar Jun 16 '22 17:06 rambip

I got DNS to work: https://github.com/ettom/dnshack This should work pretty much to the extent that DNS works on termux. That is, only the programs that don't use the libc resolver will not work correctly.

ettom avatar Jul 31 '23 22:07 ettom

Just a note that I remember about this and ettom's project, but so far I've utterly failed even in writing a regular NSS hosts module for a regular NixOS.

t184256 avatar Oct 29 '23 22:10 t184256

I have the same issue

I think termix found a way to do it: termux/termux-app#130

Looks like that was closed as not planned https://github.com/termux/termux-packages/issues/1174#issuecomment-1737274156

RyanGibb avatar Nov 22 '23 12:11 RyanGibb

Progress update: I still remember about it, still would like to accomplish it, decided to start small by writing a trivial toy NSS plugin first.

t184256 avatar Nov 22 '23 21:11 t184256