Looks like compiling sudo with --with-fqdn is a deliberate choice, and Debian and Ubuntu system has that flag for a long time. Dropping it may fix the delay in your (slightly misconfigured system) scenario, but it is certainly going to break other use cases. I do not believe the flag can be easily dropped from the sudo configure flags.
In any case, if you think this is a discussion worth having, I suggest opening a Debian bug for this. Ubuntu is unlikely to deviate from the Debian default in this regard. Bugs for the Debian "sudo" source package: https://bugs.debian.org/cgi- bin/pkgreport.cgi?src=sudo ** Changed in: sudo (Ubuntu) Status: New => Opinion -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2121898 Title: sudo hangs when hostname resolution fails due to FQDN lookup being enabled by default (--with-fqdn) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/2121898/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
