TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
glibc2 and resolver code
A little more info on the RedHat 5.2 resolver problem I was asking about
earlier:
Looking through the glibc2 source again... Looks like there is conditional
code for the sortlist resolver option. In resolver/res_init.c ...
#ifdef RESOLVSORT
if (MATCH(buf, "sortlist")) {
struct in_addr a;
.
.
.
#endif
But I can't find a "#define RESOLVSORT" anywhere! Doh! I wonder if this
code wasn't even compiled in?
I also tried copying over a libc5 ping binary to a RedHat machine (which
also has libc5 libraries for backward compatibility) and nslookups worked
correctly (i.e. the sortlist was consulted, and the correct IP was returned
for each gethostbyname.) Definetly a glibc2 v.s. libc5 issue...
--Mark