Somewhat interestingly, I'm not sure why I can't just reproduce this by: $ sudo bash -c 'oname=$(hostname); trap "hostname $oname" EXIT; hostname my-bogus-hostname; hostname; time sudo /bin/true;' ; hostname
but it doesnt reproduce this way. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1730744 Title: sudo is slow (10 seconds) when hostname is not resolvable To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1730744/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
