Mercurial > dnsbl
diff src/dnsbl.cpp @ 425:1b7a785610f5
hosts-ignore.conf can be used to ignore nameserver names
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 18 Aug 2017 09:11:35 -0700 |
parents | 91f2a127ec69 |
children | 6f2db3d19a34 |
line wrap: on
line diff
--- a/src/dnsbl.cpp Wed Jul 26 09:02:22 2017 -0700 +++ b/src/dnsbl.cpp Fri Aug 18 09:11:35 2017 -0700 @@ -1151,6 +1151,11 @@ if ((count > limit) && (limit > 0)) return false; // too many name servers to check them all host = (*i).first; // a transient reference that needs to be replaced before we return it ip = (*i).second; + + // don't bother looking up nameserver names on the ignore list + string_set::iterator j = ignore.find(host); + if (j != ignore.end()) continue; + if (!ip) ip = dns_interface(priv, host, ns_t_a); if (debug_syslog > 2) { char buf[maxlen];