Skip to content
Snippets Groups Projects
Commit 0cbfc0d2 authored by Stuart Gathman's avatar Stuart Gathman
Browse files

Limit CNAME lookups.

parent 46ad2794
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,9 @@ For news, bugfixes, etc. visit the home page for this implementation at ...@@ -47,6 +47,9 @@ For news, bugfixes, etc. visit the home page for this implementation at
# Terrence is not responding to email. # Terrence is not responding to email.
# #
# $Log$ # $Log$
# Revision 1.11 2005/07/20 03:30:04 customdesigned
# Check pydspam version for honeypot, include latest pyspf changes.
#
# Revision 1.26 2005/07/20 03:12:40 customdesigned # Revision 1.26 2005/07/20 03:12:40 customdesigned
# When not in strict mode, don't give PermErr for bad mechanism until # When not in strict mode, don't give PermErr for bad mechanism until
# encountered during evaluation. # encountered during evaluation.
...@@ -872,6 +875,7 @@ class query(object): ...@@ -872,6 +875,7 @@ class query(object):
self.cache.setdefault(k, []).append(v) self.cache.setdefault(k, []).append(v)
result = self.cache.get( (name, qtype), []) result = self.cache.get( (name, qtype), [])
if not result and cname: if not result and cname:
self.check_lookups()
result = self.dns(cname, qtype) result = self.dns(cname, qtype)
return result return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment