nix-on-droid
nix-on-droid copied to clipboard
DNS settings are not picked up from Android
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.
Idea: maybe it's easier to run a DNS server on Android and use it from inside Nix-on-Droid?
I am also having this issue.
I have the same issue
I think termix found a way to do it: https://github.com/termux/termux-app/issues/130
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.
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.
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
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.