Commit 4275b93f authored by aoh's avatar aoh
Browse files

lookup: Ask our own nameserver instead


Signed-off-by: aoh's avataraoh <aoh@lysator.liu.se>
parent a5cc26fc
......@@ -46,7 +46,7 @@ class Record:
# Resolve fully qualified domain name
def lookup(fully_qualified_domain_name):
resolver = Resolver()
resolver.nameservers=[gethostbyname('resolver.lysator.liu.se')]
resolver.nameservers=[gethostbyname('127.0.0.1')]
ips = list()
try:
ips += [str(x) for x in resolver.query(fully_qualified_domain_name, 'A')]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment