Remove ending '.' in hostname. (for those fucking libs that knows nothing about RFC)

This commit is contained in:
w1r0x 2016-08-12 10:39:50 +03:00
parent 3fa821e2dc
commit 1b962b12d4

View File

@ -41,7 +41,7 @@ def do_query(fqdn):
for rdata in query: for rdata in query:
info = str(rdata).split() info = str(rdata).split()
server = {'name': info[3], 'port': info[2]} server = {'name': info[3][:-1], 'port': info[2]}
servers.append(server) servers.append(server)
except DNSException: except DNSException:
print("Could not resolve " + fqdn) print("Could not resolve " + fqdn)