diff --git a/bley.py b/bley.py index a16b67f..f839896 100644 --- a/bley.py +++ b/bley.py @@ -26,8 +26,8 @@ # SUCH DAMAGE. from twisted.internet.protocol import Factory +from twisted.names import client from twisted.internet import defer -from twisted.internet import reactor import psycopg2 import datetime @@ -253,7 +253,7 @@ def check_dnsl(self, lst, ip): rip = reverse_ip(ip) lookup = '%s.%s' % (rip, lst) - d = reactor.resolve(lookup) + d = client.lookupAddress(lookup) return d class BleyPolicyFactory(Factory):