Matus UHLAR - fantomas a écrit :
On Wed, May 31, 2006 at 11:28:44PM +0200, Matus UHLAR - fantomas wrote:
Searching mailinglists, bug databases did not give me correct answer.
Does glibc sorty/reorder IP addresses gotten from DNS?
Is this fixed in any newer versions of glibc?
On 01.06.06 11:39, Gabor Gombas wrote:
AFAIK there are no requirements about the order of addresses returned by
any NSS calls. In particular, the returned order does not need to match
the order in the underlying database (DNS in this case). Anything that
relies on the returned addresses having a specific order is just plainly
bogus.
Nothing "relies". It's just if you will receive addresses in some order, you
should not reorder them unless you know what order they should be delivered
in (e.g. ordering via RFC3484)
Where have you seen the resolver should not reorder the addresses? Any
pointer?
The relevant documents for the resolver are the RFCs. Have a look at
RFC1034, pages 10 and 11:
| A domain name identifies a node. Each node has a set of resource
| information, which may be empty. The set of resource information
| associated with a particular name is composed of separate resource
| records (RRs). The order of RRs in a set is not significant, and need
| not be preserved by name servers, resolvers, or other parts of the
| DNS.
So the glibc is fully compliant with the RFC. There is nothing wrong
with it.
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' [EMAIL PROTECTED] | [EMAIL PROTECTED]
`- people.debian.org/~aurel32 | www.aurel32.net
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]