resolve.conf sortlist

Kevin Darcy kcd at daimlerchrysler.com
Tue Mar 13 23:25:01 UTC 2001


"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