Subject: Re: randomid(3)
To: None <kre@munnari.OZ.AU>
From: Jun-ichiro itojun Hagino <>
List: tech-userlevel
Date: 09/13/2003 06:44:31
>   | 	in bind-9.3.0s20021217, lib/dns/dispatch.c:dns_randomid().
> That looks to me to be a part of the nameserver (which in BIND is
> also the DNS cache server).    If this gets generated into a stub
> resolver anywhere for inclusion into libc, I couldn't work out how.
> What's more, all that code in dispatch.c doesn't really look as if
> it would be appropriate for libc.
> So, does bind9 really have a stub resolver which is producing good random
> numbers for the dns query ID, or was that just imagined?
> What the cache does is completely irrelevant to this.

	lib/dns is used by all BIND9 apps, like host and dig (IIRC).
	so it is equivalent to resolver included in libc.