[CentOS] sudo doing DNS lookup

Sat Dec 11 05:18:23 UTC 2010
Nico Kadel-Garcia <nkadel at gmail.com>

On Fri, Dec 10, 2010 at 8:43 AM, Steve Clark <sclark at netwolves.com> wrote:
> Hi,
>
> I have a confusing problem. I have two centos 5,5 boxes. Both have
> sudo.i386                                1.7.2p1-9.el5_5
> installed
>
> I am using the same sudoers file, but the one on box A keeps trying to do
> DNS lookups
> while the one on box B does not. How do I disable this DNS lookup?
>
> Thanks for any info.

It's probably looking up the hostname of the host you're on, to match
against host informaiton in sudoers entries. Do you have your hostname
and IP address in /etc/hosts on each machine? And do you have fully
qualified hostnames, matching the entries in /etc/hosts?