message_fromWire2 637 B

12345678910111213141516171819202122
  1. #
  2. # A simple DNS response message
  3. # ID = 0x1035
  4. # QR=1 (response), Opcode=0, AA=1, RD=1 (other fields are 0)
  5. # QDCOUNT=1, ANCOUNT=2, other COUNTS=0
  6. # Question: test.example.net. IN A
  7. # Answer:
  8. # test.example.net. 3600 IN A 192.0.2.1
  9. # test.example.net. 7200 IN A 192.0.2.2
  10. #
  11. 1035 8500
  12. 0001 0002 0000 0000
  13. #(4) t e s t (7) e x a m p l e (3) n e t .
  14. 04 74 65 73 74 07 65 78 61 6d 70 6c 65 03 6e 65 74 00
  15. 0001 0001
  16. # same name, fully compressed
  17. c0 0c
  18. # TTL=3600, A, IN, RDLENGTH=4, RDATA
  19. 0001 0001 00000e10 0004 c0 00 02 01
  20. # mostly same, with the slight difference in RDATA and TTL
  21. c0 0c
  22. 0001 0001 00001c20 0004 c0 00 02 02