dn_expand function?

Associate
Joined
21 Oct 2006
Posts
1,615
Location
Cambridge
It seems that FC8 (likely FC8 and onwards) and CentOS do not have the library containing the dn_expand function, installed by default.

dn_expand can be used IIRC used to perform a reverse dns_lookup by certain applications when the domain cannot be obtained locally (i.e. from the /etc/hosts file).

I thought that the libresolv library contained this function, but attempting to yum search this on CentOS returns nothing.

Any ideas?
 
It's in libresolve on my Gentoo box:

$ objdump -T /lib/libresolv.so.2|grep dn_expand
000040e0 w DF .text 0000005e GLIBC_2.0 dn_expand
000040e0 g DF .text 0000005e GLIBC_2.2 __dn_expand

Looks like the newer glibc abi added a couple of underscores.

try doing a "for i in /lib/lib*.so;do objdump -T $i|grep dn_expand && echo $i;done" ?
 
Back
Top Bottom