FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 12-10-2010, 12:43 PM
Steve Clark
 
Default 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@netwolves.com

http://www.netwolves.com




_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 12-10-2010, 12:46 PM
"Baird, Josh"
 
Default sudo doing DNS lookup

Maybe I am missing something here.. but what does ‘sudo’ have to
do with DNS resolution?


*






From: centos-bounces@centos.org
[mailto:centos-bounces@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@netwolves.com

http://www.netwolves.com









_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 12-10-2010, 01:01 PM
Steve Clark
 
Default sudo doing DNS lookup

On 12/10/2010 08:46 AM, Baird, Josh wrote:






Maybe
I am missing something here.. but what does ‘sudo’ have to
do with DNS resolution?

*



From:
centos-bounces@centos.org
[mailto:centos-bounces@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.







That is a very good question.



But here is part of an strace of

sudo cat /etc/hosts





socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4

connect(4, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("198.6.1.4")}, 28) = 0

fcntl64(4, F_GETFL)******************** = 0x2 (flags O_RDWR)

fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)* = 0

gettimeofday({1291986809, 169934}, NULL) = 0

poll([{fd=4, events=POLLOUT}], 1, 0)*** = 1 ([{fd=4, revents=POLLOUT}])

send(4, "1231115Z7070 netwolves3com"..., 51,
MSG_NOSIGNAL) = 51

poll([{fd=4, events=POLLIN}], 1, 5000)* = 1 ([{fd=4, revents=POLLIN}])

ioctl(4, FIONREAD, [113])************** = 0

recvfrom(4, "1231201203115Z7070 netwolves3com"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("198.6.1.4")}, [16]) = 113

close(4)





--

Stephen*Clark

NetWolves

Sr.*Software*Engineer*III

Phone:*813-579-3200

Fax:*813-882-0209

Email:*steve.clark@netwolves.com

http://www.netwolves.com




_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 12-10-2010, 01:04 PM
John Doe
 
Default sudo doing DNS lookup

From: Steve Clark <sclark@netwolves.com>
>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 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



_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 04:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org