Module state, per query.
This class provides these data attributes:
This class provides these data attributes:
This class provides these data attributes:
Region allocated message reply
This class provides these data attributes:
The identifying information for an RRset.
This class provides these data attributes:
This structure contains an RRset. A set of resource records that share the same domain name, type and class. Due to memory management and threading, the key structure cannot be deleted, although the data can be. The id can be set to 0 to store and the structure can be recycled with a new id.
The ub_packed_rrset_key provides these data attributes:
The ub_packed_rrset_key provides these data attributes:
Rdata is stored in wireformat. The dname is stored in wireformat.
TTLs are stored as absolute values (and could be expired).
RRSIGs are stored in the arrays after the regular rrs.
You need the packed_rrset_key to know dname, type, class of the resource records in this RRset. (if signed the rrsig gives the type too).
The packed_rrset_data provides these data attributes:
Abstract representation of DNS message.
Usage
This example shows how to create an authoritative answer response
msg = DNSMessage(qstate.qinfo.qname_str, RR_TYPE_A, RR_CLASS_IN, PKT_AA) #append RR if (qstate.qinfo.qtype == RR_TYPE_A) or (qstate.qinfo.qtype == RR_TYPE_ANY): msg.answer.append("%s 10 IN A 127.0.0.1" % qstate.qinfo.qname_str) #set qstate.return_msg if not msg.set_return_msg(qstate): raise Exception("Can't create response")
The DNSMessage provides these methods and data attributes: