correctly parse nslookup result. fixes #4194
This commit is contained in:
parent
59b8506cf2
commit
c335a96199
|
@ -119,7 +119,8 @@ class Resolver:
|
||||||
domain = None
|
domain = None
|
||||||
if line.startswith(fqdn):
|
if line.startswith(fqdn):
|
||||||
domain = fqdn
|
domain = fqdn
|
||||||
elif line.startswith(ufqdn):
|
elif helpers.decode_string(line).startswith(ufqdn):
|
||||||
|
line = helpers.decode_string(line)
|
||||||
domain = ufqdn
|
domain = ufqdn
|
||||||
if domain:
|
if domain:
|
||||||
rest = line[len(domain):].split('=')
|
rest = line[len(domain):].split('=')
|
||||||
|
|
Loading…
Reference in New Issue