Use standard size and alignment for the packed data so it works on 64-bit hosts

This commit is contained in:
Rob Crittenden committed 2008-03-06 21:59:19 -05:00
1 parent 2e46645ad5
commit d7e30fa7ee
1 file changed
+1 -1
+1 -1
View File
@@ -54,7 +54,7 @@ def verify_fqdn(host_name):
# Compare the forward and reverse
forward = rs[0].dns_name
addr = socket.inet_ntoa(struct.pack('L',rs[0].rdata.address))
addr = socket.inet_ntoa(struct.pack('=L',rs[0].rdata.address))
addr = addr + ".in-addr.arpa."
rs = dnsclient.query(addr, dnsclient.DNS_C_IN, dnsclient.DNS_T_PTR)