some more fine tunning

This commit is contained in:
Miroslav Stampar
2012-05-28 19:50:12 +00:00
parent 73dba249e8
commit 76a4aa19ac
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ class DNSQuery:
retVal += "\xc0\x0c" # Pointer to domain name
retVal += "\x00\x01" # Type A
retVal += "\x00\x01" # Class IN
retVal += "\x00\x00\x00\x00" # TTL (don't cache)
retVal += "\x00\x00\x00\x20" # TTL (32 seconds)
retVal += "\x00\x04" # Data length
retVal += "".join(chr(int(_)) for _ in resolution.split('.')) # 4 bytes of IP