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