diff --git a/configure.in b/configure.in
index 8c4209476e21cd46cd283daac55ccd59cdb8d622..88bd775be26925dc6882a7852cf0a94b6f63fa4f 100644
--- a/configure.in
+++ b/configure.in
@@ -64,6 +64,7 @@ AC_CHECK_LIB(wwwcore,HTEvent_setRegisterCallback,[
   WWW_INCLUDES="-I/usr/include/w3c-libwww"
 ],,-lwwwutils)
 
+AC_CHECK_LIB(resolv,res_query)
 if test -z "$no_wacky_libs" ; then
   AC_CHECK_LIB(nsl,main)
   AC_CHECK_LIB(socket,socket)