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. -- Stephen Clark *NetWolves* Sr. Software Engineer III Phone: 813-579-3200 Fax: 813-882-0209 Email: steve.clark at netwolves.com http://www.netwolves.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20101210/386abb3e/attachment-0002.html>
Maybe I am missing something here.. but what does 'sudo' have to do with DNS resolution? From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On Behalf Of Steve Clark Sent: Friday, December 10, 2010 7:44 AM To: CentOS mailing list Subject: [CentOS] sudo doing DNS lookup 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. -- Stephen Clark NetWolves Sr. Software Engineer III Phone: 813-579-3200 Fax: 813-882-0209 Email: steve.clark at netwolves.com http://www.netwolves.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20101210/0105a8e6/attachment-0002.html>
From: Steve Clark <sclark at netwolves.com>>I have a confusing problem. I have two centos 5,5 boxes. Both have >sudo.i386 1.7.2p1-9.el5_5installed>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?Do you have fqdn in sudoers? man sudoers: "Beware that turning on fqdn requires sudo to make DNS lookups which may make sudo unusable if DNS stops working" JD
On Fri, Dec 10, 2010 at 8:43 AM, Steve Clark <sclark at netwolves.com> wrote:> > 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?Do both hosts have their hostnames in "/etc/hosts"? Do both hosts have "hosts: files dns" in "/etc/nsswitch.conf"?
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?