Use standard size and alignment for the packed data so it works on 64-bit hosts
This commit is contained in:
1 parent
2e46645ad5
commit
d7e30fa7ee
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user