I am using centos 6.4
. While doing dig or nslookup, I got below error
dig: error while loading shared libr
When you are trying
ldd /usr/bin/dig
Are you able to find a line like
libcrypto.so.4 => not found
If so Try
locate libcrypto.so.4
Suppose you can locate the file at /path/to/file/libcrypto.so.4
then try the command
export LD_LIBRARY_PATH="/path/to/file"
Then try command dig. It should be fine. Other wise you need to search for the package that provides the libcrypto.so.4 library
try a soft link
ln -s /usr/lib64/libcrypto.so.10 /lib
Let us know if that helped you.
Or you can remove and install again using yum. Normally library files places to its apt position when installs using yum.
yum remove dns-utils
yum install dns-utils
You can enable epel repositories in case you need it epel