nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.15k stars 65 forks source link

Mosh DNS not working #347

Closed Toomoch closed 2 months ago

Toomoch commented 2 months ago

On the other hand, SSH works fine. I'm using the dnshack LD_PRELOAD thing, because the host is on a wireguard VPN.

❯ mosh h81.casa.lan
/nix/store/7qhh3n9xvglaqiyzg1dd0wyhvgyyvx68-mosh-1.4.0/bin/.mosh-wrapped: could not get canonical name for h81.casa.lan: Name or service not known
Connection closed by UNKNOWN port 65535
/nix/store/7qhh3n9xvglaqiyzg1dd0wyhvgyyvx68-mosh-1.4.0/bin/.mosh-wrapped: Did not find remote IP address (is SSH ProxyCommand disabled?).
Toomoch commented 2 months ago

It seems it works fine using --experimental-remote-ip=remote. I think then it uses SSH to do resolution, instead of resolving with whatever method mosh uses.