message_fromWire9 738 B

12345678910111213141516171819202122232425
  1. #
  2. # The TTL for a record in answer section is 0, so it
  3. # will expire immediately after being cached.
  4. #
  5. # A simple DNS response message
  6. # ID = 0x1035
  7. # QR=1 (response), Opcode=0, AA=1, RD=1 (other fields are 0)
  8. # QDCOUNT=1, ANCOUNT=2, other COUNTS=0
  9. # Question: test.example.org. IN A
  10. # Answer:
  11. # test.example.org. 0000 IN A 192.0.2.1
  12. # test.example.org. 7200 IN A 192.0.2.2
  13. #
  14. 1035 8500
  15. 0001 0002 0000 0000
  16. #(4) t e s t (7) e x a m p l e (3) o r g .
  17. 04 74 65 73 74 07 65 78 61 6d 70 6c 65 03 6f 72 67 00
  18. 0001 0001
  19. # same name, fully compressed
  20. c0 0c
  21. # TTL=3600, A, IN, RDLENGTH=4, RDATA
  22. 0001 0001 00000000 0004 c0 00 02 01
  23. # mostly same, with the slight difference in RDATA and TTL
  24. c0 0c
  25. 0001 0001 00001c20 0004 c0 00 02 02