|
|
"Gerald (Jerry) Carter" <jerry@xxxxxxxxx> writes:
> FYI....
>
> Here's a short patch to replace the OpenLDAP ldap_domain2hostlist()
> calls with a small internal dns query. The next step would be
> to refactor the ads_dns_query_dcs() code to a generic DNS SRV
> query function.
You need to read up on RFC 2782 how to sort the dns srv rr entries.
Also, you need to make the request space larger. I don't know how large
your NS_PACKETSZ is, probably 512 which is the udp packet size, but it wont
be large enough for the TCP with 100 DC's case (I'm not kidding, people do
this).
Se heimdal/lib/roken/resolve.c for a complete implementation.
Love
|
|