diff --git a/src/common/nslookup.py b/src/common/nslookup.py
index bfec508aa13c0440b4e0dcf980bc3383a5c59e6a..c36565dc30b4d7b822f4848d76ba3dc176c36645 100644
--- a/src/common/nslookup.py
+++ b/src/common/nslookup.py
@@ -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('=')