diff --git a/client/run.py b/client/run.py index f0eaa85..61aa884 100644 --- a/client/run.py +++ b/client/run.py @@ -20,15 +20,16 @@ class SuperResolver(dnslib.server.BaseResolver): self.rip = str(resolver.query(raddr)[0]) class HTTPResolver(SuperResolver): - def __init__(self, raddr = "httpns.kumi.systems", rport = 9229, timeout = 0): + def __init__(self, raddr = "httpns.kumi.systems", rport = 9539, timeout = 0): SuperResolver.__init__(self, raddr, rport, timeout) def resolve(self, req, handler): rep = req.reply() + rep.header.rcode = getattr(dnslib.RCODE, "NXDOMAIN") return rep class DNSResolver(SuperResolver): - def __init__(self, raddr = "8.8.8.8", rport = 22, timeout = 0): + def __init__(self, raddr = "8.8.8.8", rport = 53, timeout = 0): SuperResolver.__init__(self, raddr, rport, timeout) def resolve(self, req, handler): @@ -41,4 +42,3 @@ class DNSResolver(SuperResolver): return rep -