Bugzilla – Bug 386
sudo still resolves hostnames despite Defaults !fqdn
Last modified: 2010-07-09 10:36:25 MDT
When configuring !fqdn, sudo still tries to resolve some hostname. The only possibility to kill this behaviour is by compiling without --with-fqdn, but I do not want to recompile the package every time a new version is released. Resolving is unnecessary since I do not plan to use hostnames in my sudoers file and often I am without network access (or with rather slow network access).
Sudo currently uses the value of def_fqdn before sudoers is parsed, which means it gets the compiled in value (--with-fqdn) instead of the sudoers value. Waiting until after sudoers has been parsed should be doable. I'll look at this for sudo 1.7.3.
Created attachment 278 [details] Patch to defer fqdn setting until after sudoers is parsed I've attached a patch to defer checking fqdn status until after sudoers is parsed which should resolve this. This change will be in sudo 1.7.3 due out at the end of June.
Fixed in sudo 1.7.3