X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=common%2Frbl.c;h=0ae49796b27aae6e3350e35eb5b8e712d3a94983;hb=94227060565c512af24fcbafe270951c15bcbd9b;hp=11ed46415cafa29a49f0727fe28b141452683378;hpb=91da9fe6f37e6a82b226622e1a3e90ee85a9a138;p=apps%2Fpfixtools.git diff --git a/common/rbl.c b/common/rbl.c index 11ed464..0ae4979 100644 --- a/common/rbl.c +++ b/common/rbl.c @@ -38,13 +38,17 @@ static inline rbl_result_t rbl_dns_check(const char *hostname) { + debug("looking up for %s", hostname); struct hostent *host = gethostbyname(hostname); if (host != NULL) { + debug("host found"); return RBL_FOUND; } else { if (h_errno == HOST_NOT_FOUND) { + debug("host not found: %s", hostname); return RBL_NOTFOUND; } + debug("dns error: %m"); return RBL_ERROR; } }