<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 12/10/2010 08:46 AM, Baird, Josh wrote:
<blockquote
 cite="mid:E1716B9189D4784989F2D37F5D24D73002A6A631@RGXXCRPEXMB02.na.follett.lan"
 type="cite">
  <meta http-equiv="Content-Type"
 content="text/html; charset=ISO-8859-1">
  <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
  </style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="WordSection1">
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);">Maybe
I am missing something here.. but what does ‘sudo’ have to
do with DNS resolution?<o:p></o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 11pt; font-family: "Calibri","sans-serif"; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
  <div>
  <div
 style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
  <p class="MsoNormal"><b><span
 style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">From:</span></b><span
 style="font-size: 10pt; font-family: "Tahoma","sans-serif"; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:centos-bounces@centos.org">centos-bounces@centos.org</a>
[<a class="moz-txt-link-freetext" href="mailto:centos-bounces@centos.org">mailto:centos-bounces@centos.org</a>] <b>On Behalf Of </b>Steve Clark<br>
  <b>Sent:</b> Friday, December 10, 2010 7:44 AM<br>
  <b>To:</b> CentOS mailing list<br>
  <b>Subject:</b> [CentOS] sudo doing DNS lookup<o:p></o:p></span></p>
  </div>
  </div>
  <p class="MsoNormal"><o:p> </o:p></p>
  <p class="MsoNormal" style="margin-bottom: 12pt;"><span
 style="font-family: "Arial","sans-serif";">Hi,<br>
  <br>
I have a confusing problem. I have two centos 5,5 boxes. Both have<br>
sudo.i386                               
1.7.2p1-9.el5_5              
installed<br>
  <br>
I am using the same sudoers file, but the one on box A keeps trying to
do DNS
lookups<br>
while the one on box B does not. How do I disable this DNS lookup?<br>
  <br>
Thanks for any info.</span><o:p></o:p></p>
  <br>
  </div>
</blockquote>
<br>
That is a very good question.<br>
<br>
But here is part of an strace of<br>
sudo cat /etc/hosts<br>
<br>
<br>
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4<br>
connect(4, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("198.6.1.4")}, 28) = 0<br>
fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)<br>
fcntl64(4, F_SETFL, O_RDWR|O_NONBLOCK)  = 0<br>
gettimeofday({1291986809, 169934}, NULL) = 0<br>
poll([{fd=4, events=POLLOUT}], 1, 0)    = 1 ([{fd=4, revents=POLLOUT}])<br>
send(4, "\1\231\1\0\0\1\0\0\0\0\0\0\5Z7070\tnetwolves\3com"..., 51,
MSG_NOSIGNAL) = 51<br>
poll([{fd=4, events=POLLIN}], 1, 5000)  = 1 ([{fd=4, revents=POLLIN}])<br>
ioctl(4, FIONREAD, [113])               = 0<br>
recvfrom(4, "\1\231\201\203\0\1\0\0\0\1\0\0\5Z7070\tnetwolves\3com"...,
1024, 0, {sa_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("198.6.1.4")}, [16]) = 113<br>
close(4) <br>
<br>
<br>
<div class="moz-signature">-- <br>
Stephen Clark<br>
<b>NetWolves</b><br>
Sr. Software Engineer III<br>
Phone: 813-579-3200<br>
Fax: 813-882-0209<br>
Email: <a class="moz-txt-link-abbreviated" href="mailto:steve.clark@netwolves.com">steve.clark@netwolves.com</a><br>
<a class="moz-txt-link-freetext" href="http://www.netwolves.com">http://www.netwolves.com</a><br>
</div>
</body>
</html>