Further investigation indicates that this looks to be something weird about the WSL2 resolver implementation. Replacing the out of the box /etc/resolv.conf (which uses the host computer as a name server) with one using an external name server (e.g. 8.8.8.8) restores the expected behaviour.
I guess I'll need to raise this with Microsoft instead. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1952131 Title: Extra output from host command causes issue with ssh To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bind9/+bug/1952131/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs