This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Ordering of nameserver addresses in resolver state struct
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: Michal Sekletár <sekletar dot m at gmail dot com>
- Cc: libc-help at sourceware dot org
- Date: Thu, 5 Dec 2013 11:25:24 +0100
- Subject: Re: Ordering of nameserver addresses in resolver state struct
- Authentication-results: sourceware.org; auth=none
- References: <CAJ7VeQy8wuYAb+J=BhPMJwq=kU5rvr3PZZ_WjC0h7j9ZAo+kjg at mail dot gmail dot com> <20131007125602 dot GB5515 at domone>
On Mon, Oct 07, 2013 at 02:56:02PM +0200, OndÅej BÃlka wrote:
> On Thu, Sep 19, 2013 at 11:13:39PM +0200, Michal SekletÃr wrote:
> > Hi glibc hackers,
> >
> > I came across following fact which to me seems like an inconsistency, maybe
> > worth to fix.
> >
> Could you file a bug for this one?
>
Did you sumbit a bug report with testcase?
> > Consider system which has dns resolver configured with 3 dns server
> > addresses. Second address is IPv6 other two are IPv4 addresses, please keep the
> > ordering in mind.
> >
> > State of dns resolver is such that arrays of nameserver addresses nsaddr_list
> > contains two entries and the third one contains all zeroes. This doesn't
> > correspond to the order of nameservers in /etc/resolv.conf since IPv4
> > nameservers are first and third in the file. However array _u._ext.nsaddrs
> > containing pointers to sockaddr_in6 structures has following content : [nil, ptr
> > , nil]. It reflects ordering in resolv.conf.
> >
> > Is this intentional? I think that order in later case should be [ptr, nil, nil].
> >
> > Cheers,
> >
> > Michal