glibc resolver dns query ids

From: Jarno Huuskonen (Jarno.Huuskonen@private)
Date: Wed May 23 2001 - 08:58:07 PDT


I noticed that you have added a patch for glibc-2.1.3 to use more random
dns query ids (the same patch you have for bind-4.9.x ?).

Have you done any tests to see if the patch adds any performance 
penalties etc. ? (My rough guess would be that any penalties will be very
minimal).

(Also have you tested bind-8.2.3 with 'use-id-pool yes;' to see if it
uses decent query id's and how it compares to your res_randomid patch ?)

Have you done (or considered) a similar patch for glibc __gen_tempname ?
Here's part of the __gen_tempname code (looks similar to the res_randomid):
value += ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec ^ __getpid ();
(I guess it couldn't hurt if __gen_tempname would accept more than six X's).

This probably isn't very interesting but might help some (closed source)
programs (if you have to use them) that use mktemp/tempnam with or 
without O_EXCL.

Have you considered using something like prngd as a random source ?
OpenSSH seems to recommend prngd.

-Jarno

-- 
Jarno Huuskonen - System Administrator   |  Jarno.Huuskonen@private
University of Kuopio - Computer Center   |  Work:   +358 17 162822
PO BOX 1627, 70211 Kuopio, Finland       |  Mobile: +358 40 5388169



This archive was generated by hypermail 2.1.3 : Sun Jan 15 2006 - 13:43:14 PST