#1688 MM hotfix: fix DNS lookups
Closed: Fixed None Opened 14 years ago by mdomsch.

= phenomenon =
MM can't use DNS names in netblock lists

= reason =
str(queryresult) != queryresult

= recommendation =
git commit 48a2cdadd32faa3a596f2564e8d471a7aad5d47c
--- a/server/mirrormanager/mirrorlist.py
+++ b/server/mirrormanager/mirrorlist.py
@@ -174,7 +174,7 @@ def name_to_ips(name):
records = dns.resolver.query(name, r)
for rdata in records:
try:
- ip = IP(rdata)
+ ip = IP(str(rdata))
result.append(ip)
except:
continue


hotfix in place on all app servers, though only bapp1 runs this code path.

Fix in production 1.3.2.

Login to comment on this ticket.

Metadata