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, "12311 1 5Z7070 netwolves3com"..., 51,
MSG_NOSIGNAL) = 51
poll([{fd=4, events=POLLIN}], 1, 5000)Â* = 1 ([{fd=4, revents=POLLIN}])
ioctl(4, FIONREAD, [113])Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â*Â* = 0
recvfrom(4, "1231201203 1 1 5Z7070 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
|