diff options
author | Peter Powell <petpow@saberuk.com> | 2018-09-25 12:47:32 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-09-25 15:01:42 +0100 |
commit | 9e65d1e95449b55a06443f3386ccc45bc9e43a98 (patch) | |
tree | e6b381dbd743010d7b96fb6a3f5a5606f79013c5 | |
parent | 4995417f59c91cf62c13f1d1dcfdbf4f67714b83 (diff) |
Send a message to snomask 'd' when a DNSBL lookup fails.
Closes #1433.
-rw-r--r-- | src/modules/m_dnsbl.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 89fecf696..4ef4df6f6 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -200,7 +200,8 @@ class DNSBLResolver : public DNS::Request break; } - ServerInstance->SNO->WriteGlobalSno('d', "Connecting user %s%s detected as being on a DNS blacklist (%s) with result %d", them->nick.empty() ? "<unknown>" : "", them->GetFullRealHost().c_str(), ConfEntry->domain.c_str(), (ConfEntry->type==DNSBLConfEntry::A_BITMASK) ? bitmask : record); + ServerInstance->SNO->WriteGlobalSno('d', "Connecting user %s detected as being on a DNS blacklist (%s) with result %d", + them->GetFullRealHost().c_str(), ConfEntry->domain.c_str(), (ConfEntry->type==DNSBLConfEntry::A_BITMASK) ? bitmask : record); } else ConfEntry->stats_misses++; @@ -218,6 +219,9 @@ class DNSBLResolver : public DNS::Request if (q->error == DNS::ERROR_NO_RECORDS || q->error == DNS::ERROR_DOMAIN_NOT_FOUND) ConfEntry->stats_misses++; + + ServerInstance->SNO->WriteGlobalSno('d', "An error occurred whilst checking whether %s (%s) is on the '%s' DNS blacklist: %s", + them->GetFullRealHost().c_str(), them->GetIPString().c_str(), ConfEntry->name.c_str(), this->manager->GetErrorStr(q->error).c_str()); } }; |