[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#35731: libc6: reorder on in /etc/host.conf does not work



Ok. If I use a statement in /etc/resolv.conf to accomplish the same

sortlist 10.0.0.0/255.0.0.0

the same happens.

man resolv.conf

       sortlist
              Sortlist allows addresses returned by gethostbyname
              to be  sorted.   A  sortlist  is  specified  by  IP
              address  netmask pairs. The netmask is optional and
              defaults to the natural netmask of the net. The  IP
              address and optional network pairs are separated by
              slashes. Up to 10 pairs may be specified.

              e.g.      sortlist      130.155.160.0/255.255.240.0
              130.155.0.0

This applies to glibc right?

How can I configure the resolver to give preference to interfaces of
multi-homed hosts on the same network? According to the BIND reference
manual this should be possible. 

On 8 Apr 1999, Jean Charles Delepine wrote:

> clameter@debian.org writes:
> 
> > Package: libc6
> > Version: 2.1.1-0.1
> > 
> > /etc/host.conf contains
> 
> /etc/host.conf is a libc5 config file. Programs links with the libc6
> don't use it any more.
> 
> Maybe the man pages should have a word on it...
> 
> Have a look to info libc6 and search for Name Service Switch.
> 
> > this is supposed to order the IPs for a multihomed host so that the local
> > network is preferred. Manpage of host.conf:
> > 
> >      reorder
> >               Valid values are on and off.  If set to on, resolv+
> >               will  attempt  to  reorder  host  addresses so that
> >               local addresses (i.e.,  on  the  same  subnet)  are
> >               listed  first when a gethostbyname(3) is performed.
> >               Reordering is done for  all  lookup  methods.   The
> >               default value is off.
> 
> I don't know how to do this with the glibc2.
> 
>               Jean Charles
> 


Reply to: