Bugzilla – Bug 916
Defer host name lookup
Last modified: 2020-02-10 05:45:37 MST
Using sudo to fix a network connection may take a long time, as sudo uses said network connection for its host name lookup. It should either defer lookup until it actually needs a host name, or set a flag after scanning the rules file: host name lookup should be skipped when there are only rules which use "ALL" as the host name.
Sudo doesn't do DNS lookups by default unless the fqdn flag is set. However, some systems like Debian do hard-code this as a default value. If you have a line like the following in sudoers, does it help? Defaults !fqdn
Ah. That explains it. Thanks, I'll dropkick our admins into adding that line.