Re: [users@httpd] Retry: HostnameLookups timeout?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It was thus said that the Great Markus Mayer once stated:
> 
> I looked in the code and the manuals for the system calls.  It seems I have no
> control over this from apache.  I will have to look in the system itself, but
> I doubt I can change anything there.  If I find something I will report back
> to the list because it is certainly useful for other people.

  And there exists the possiblity of setting the timeout to infinity and
*still* have the reverse lookup fail, since there are plenty of ISPs that
don't bother with setting up PTR records for all their IP addresses.

  Now, with that said, you could certainly modify Apache to do multiple
attempts, wrapping the call to getnameinfo() in something like:

	/*----------------------------------
	; demo code only---for demonstration
	; purposes only!  You have been 
	; warned! 
	;-----------------------------------*/

	{
	  int tries = 3;
          int rc;

	  while(tries--)
	  {
	    rc = getnameinfo();
	    if (rc == 0) break;
	  }
	}

  But it's probably best not to do any DNS lookups at all.

  -spc (Or, you could modify the resolving libraries ... )




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux