1DNS(3) dns 1.0 DNS(3)
2
3
4
6 packet.application.dns - DNS module
7
9 Decode DNS layer.
10
11 RFC 1035 Domain Names - Implementation and Specification RFC 2671
12 Extension Mechanisms for DNS (EDNS0) RFC 4034 Resource Records for the
13 DNS Security Extensions RFC 4035 Protocol Modifications for the DNS
14 Security Extensions RFC 4255 Using DNS to Securely Publish Secure Shell
15 (SSH) Key Fingerprints
16
18 class DNS(baseobj.BaseObj)
19 DNS object
20
21 Usage:
22 from packet.application.dns import DNS
23
24 # Decode DNS layer
25 x = DNS(pktt, proto)
26
27 Object definition:
28
29 DNS(
30 id = int, # Query Identifier
31 QR = int, # Packet Type (QUERY or REPLY)
32 opcode = int, # Query Type
33 AA = int, # Authoritative Answer
34 TC = int, # Truncated Response
35 RD = int, # Recursion Desired
36 RA = int, # Recursion Available
37 AD = int, # Authentic Data
38 CD = int, # Checking Disabled
39 rcode = int, # Response Code
40 version = int, # Version (EDNS0)
41 udpsize = int, # UDP Payload Size (EDNS0)
42 options = list, # Options (EDNS0)
43 qdcount = int, # Number of Queries
44 ancount = int, # Number of Answers
45 nscount = int, # Number of Authority Records
46 arcount = int, # Number of Additional Records
47 queries = list, # List of Queries
48 answers = list, # List of Answers
49 authorities = list, # List of Authority Records
50 additional = list, # List of Additional Records
51 )
52
53
54 Methods defined here:
55 ---------------------
56
57 __init__(self, pktt, proto)
58 Constructor
59
60 Initialize object's private data.
61
62
63 pktt: Packet trace object (packet.pktt.Pktt) so this layer has
64 access to the parent layers.
65
66 proto: Transport layer protocol.
67
68 __nonzero__(self)
69 Truth value testing for the built-in operation bool()
70
71 class Option(baseobj.BaseObj)
72 Option object
73
74
75 class Query(baseobj.BaseObj)
76 Query object
77
78
79 class Resource(baseobj.BaseObj)
80 Resource object
81
82
83 class dns_algorithm(packet.utils.Enum)
84 enum dns_algorithm
85
86
87 class dns_class(packet.utils.Enum)
88 enum dns_class
89
90
91 class dns_fptype(packet.utils.Enum)
92 enum dns_fptype
93
94
95 class dns_opcode(packet.utils.Enum)
96 enum dns_opcode
97
98
99 class dns_query(packet.utils.Enum)
100 enum dns_query
101
102
103 class dns_rcode(packet.utils.Enum)
104 enum dns_rcode
105
106
107 class dns_type(packet.utils.Enum)
108 enum dns_type
109
110
112 baseobj(3), packet.internet.ipv6addr(3), packet.unpack(3),
113 packet.utils(3)
114
115
117 No known bugs.
118
120 Jorge Mora (mora@netapp.com)
121
122
123
124NFStest 2.1.5 14 February 2017 DNS(3)