correctly parse nslookup result. fixes #4194

This commit is contained in:
Yann Leboulanger 2008-08-31 19:40:45 +00:00
parent 59b8506cf2
commit c335a96199
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,8 @@ class Resolver:
domain = None
if line.startswith(fqdn):
domain = fqdn
elif line.startswith(ufqdn):
elif helpers.decode_string(line).startswith(ufqdn):
line = helpers.decode_string(line)
domain = ufqdn
if domain:
rest = line[len(domain):].split('=')