If the binary loads some libraries only if they're needed, like
libresolv.so, they won't show up in the
ldd output. In those cases, run
strings binary | grep -e '\.so[\.0-9]*$' to see if the binary contains the names of any other dynamic libraries.
Nominal Animal