Comment 93 for bug 32906

Revision history for this message
Bob Vincent (pillarsdotnet) wrote :

My desktop computer has a public IP address that is reachable from the local network as well as the internet at large.

When I set my hostname to "razor.pillars.net" then I always get the sudo warning, regardless of any /etc/hosts or /etc/sudoers modifications. Believe me; I've tried all possible permutations suggested in this thread, plus a few of my own.

Setting the hostname to "razor" (without the domain) eliminates the warning as long as there is a matching entry in /etc/hosts.

What puzzles me is that "razor.pillars.net" resolves via dns, both internally (I run djbdns on localhost) and externally. However, no amount of twiddling the /etc/hosts file or the /etc/resolv.conf file will eliminate the warning from sudo.

Can someone explain why gethostbyname() is broken if hostname is fully-qualified? Is this a glibc problem or a sudo problem?