resolve.conf sortlist

Steve Freed sfreed at ilm.com
Wed Mar 14 00:21:41 UTC 2001


Same results using ping.

Someone else hinted that what might be happening is that the sortlist is
appened to the end of the default sort list, which in this case would be
10/8, which would have not have any effect since everthing is already
"sorted" in respects to the 10/8 network. The question is, do the
resolver routines use the natural netmask for the default sort list, or
does it use the netmask specified when when configuring the interfaces.
(which is 255.255.255.0 in our case)

On the other hand, I'm not quite buying this theory. The reason is, I
changed the sortlist to "166.63.0.0" and tried pinging
cwusa-mciworldcom.Atlanta.cw.net. and sometimes it gets the 166.48.48.98
and other times it gets the 166.63.134.10 address.

--
Steve.


On Tue, 13 Mar 2001, Kevin Darcy wrote:

>
> "sortlist" only affects lookups done through gethostbyname(3), I believe
> (at least that's what the man page says -- I haven't verified this in the
> code). nslookup uses its own resolver routines and could simply be
> ignoring the "sortlist" directive. What happens if you use telnet or ping
> or some other generic system utility?
>
>
> - Kevin
>
>
> Steve Freed wrote:
>
> > Hello
> >
> > I can't seem to get the "sortlist" directive to work as I would expect
> > on the /etc/resolv.conf file. I seem to have this problem with
> > everything I test with so far: RH Linux 6.0, 6.2, 7.0, and Irix 6.*.
> >
> > My resolve.conf file looks like this:
> >
> >    nameserver 10.6.19.15
> >    sortlist 10.11.192/255.255.255.0
> >
> > My test hosts are: igor.lucasdigital.com  (10.6.11.205)
> >               and  frodo.lucasdigital.com (10.11.32.134)
> >
> > Test cases:
> > -----
> >     % nslookup maple
> >     Server:  netsvr1.lucasdigital.com
> >     Address:  10.6.19.15
> >
> >     Name:    maple.lucasdigital.com
> >     Addresses:  10.11.10.33, 10.11.192.37
> >
> > -----
> >     % nslookup maple
> >     Server:  netsvr1.lucasdigital.com
> >     Address:  10.6.19.15
> >
> >     Name:    maple.lucasdigital.com
> >     Addresses:  10.11.192.37, 10.11.10.33
> > -----
> >
> > Why do the addresses still round-robbin?
> >
> > --
> > Thanka for any insights,
> >
> > Steve.
>
>
>
>




More information about the bind-users mailing list