in reply to gethostbyname Problem on solaris 10

You might find that there is a limit of 16 or 32 addresses per query somewhere.

To work around this problem, each time you call gethostbyname, it should return the list of addresses in a different order.

For this reason, commonly nameservers are configured to only return 3 addresses at a time with large round robins like this.

Also, whenever I am experiencing name services weirdness, the very first thing I do is curse loudly at and garott the Name Services Cache Daemon (ncsd).

$h=$ENV{HOME};my@q=split/\n\n/,`cat $h/.quotes`;$s="$h/." ."signature";$t=`cat $s`;print$t,"\n",$q[rand($#q)],"\n";