Global environment

Global variables

mod_env

Module environment, contains data pointer for module-specific data. See pythonmod_env.

Predefined constants

Module extended state

module_state_initial

Initial state - new DNS query.

module_wait_reply

Waiting for reply to outgoing network query.

module_wait_module

Module is waiting for another module.

module_wait_subquery

Module is waiting for sub-query.

module_error

Module could not finish the query.

module_finished

Module is finished with query.

Module event

module_event_new

New DNS query.

module_event_pass

Query passed by other module.

module_event_reply

Reply inbound from server.

module_event_noreply

No reply, timeout or other error.

module_event_capsfail

Reply is there, but capitalisation check failed.

module_event_moddone

Next module is done, and its reply is awaiting you.

module_event_error

Error occurred.

Security status

sec_status_unchecked

Means that object has yet to be validated.

sec_status_bogus

Means that the object (RRset or message) failed to validate (according to local policy), but should have validated.

sec_status_indeterminate

Means that the object is insecure, but not authoritatively so. Generally this means that the RRset is not below a configured trust anchor.

sec_status_insecure

Means that the object is authoritatively known to be insecure. Generally this means that this RRset is below a trust anchor, but also below a verified, insecure delegation.

sec_status_secure

Means that the object (RRset or message) validated according to local policy.

Resource records (RR sets)

The different RR classes.

RR_CLASS_IN

Internet.

RR_CLASS_CH

Chaos.

RR_CLASS_HS

Hesiod (Dyer 87)

RR_CLASS_NONE

None class, dynamic update.

RR_CLASS_ANY

Any class.

The different RR types.

RR_TYPE_A

A host address.

RR_TYPE_NS

An authoritative name server.

RR_TYPE_MD

A mail destination (Obsolete - use MX).

RR_TYPE_MF

A mail forwarder (Obsolete - use MX).

RR_TYPE_CNAME

The canonical name for an alias.

RR_TYPE_SOA

Marks the start of a zone of authority.

RR_TYPE_MB

A mailbox domain name (EXPERIMENTAL).

RR_TYPE_MG

A mail group member (EXPERIMENTAL).

RR_TYPE_MR

A mail rename domain name (EXPERIMENTAL).

RR_TYPE_NULL

A null RR (EXPERIMENTAL).

RR_TYPE_WKS

A well known service description.

RR_TYPE_PTR

A domain name pointer.

RR_TYPE_HINFO

Host information.

RR_TYPE_MINFO

Mailbox or mail list information.

RR_TYPE_MX

Mail exchange.

RR_TYPE_TXT

Text strings.

RR_TYPE_RP

RFC1183.

RR_TYPE_AFSDB

RFC1183.

RR_TYPE_X25

RFC1183.

RR_TYPE_ISDN

RFC1183.

RR_TYPE_RT

RFC1183.

RR_TYPE_NSAP

RFC1706.

RR_TYPE_NSAP_PTR

RFC1348.

RR_TYPE_SIG

2535typecode.

RR_TYPE_KEY

2535typecode.

RR_TYPE_PX

RFC2163.

RR_TYPE_GPOS

RFC1712.

RR_TYPE_AAAA

IPv6 address.

RR_TYPE_LOC

LOC record RFC1876.

RR_TYPE_NXT

2535typecode.

RR_TYPE_EID

draft-ietf-nimrod-dns-01.txt.

RR_TYPE_NIMLOC

draft-ietf-nimrod-dns-01.txt.

RR_TYPE_SRV

SRV record RFC2782.

RR_TYPE_ATMA

http://www.jhsoft.com/rfc/af-saa-0069.000.rtf.

RR_TYPE_NAPTR

RFC2915.

RR_TYPE_KX

RFC2230.

RR_TYPE_CERT

RFC2538.

RR_TYPE_A6

RFC2874.

RR_TYPE_DNAME

RFC2672.

RR_TYPE_SINK

dnsind-kitchen-sink-02.txt.

RR_TYPE_OPT

Pseudo OPT record.

RR_TYPE_APL

RFC3123.

RR_TYPE_DS

draft-ietf-dnsext-delegation.

RR_TYPE_SSHFP

SSH Key Fingerprint.

RR_TYPE_IPSECKEY

draft-richardson-ipseckey-rr-11.txt.

RR_TYPE_RRSIG

draft-ietf-dnsext-dnssec-25.

RR_TYPE_NSEC
RR_TYPE_DNSKEY
RR_TYPE_DHCID
RR_TYPE_NSEC3
RR_TYPE_NSEC3PARAMS
RR_TYPE_UINFO
RR_TYPE_UID
RR_TYPE_GID
RR_TYPE_UNSPEC
RR_TYPE_TSIG
RR_TYPE_IXFR
RR_TYPE_AXFR
RR_TYPE_MAILB

A request for mailbox-related records (MB, MG or MR).

RR_TYPE_MAILA

A request for mail agent RRs (Obsolete - see MX).

RR_TYPE_ANY

Any type (wildcard).

RR_TYPE_DLV

RFC 4431, 5074, DNSSEC Lookaside Validation.

Return codes

Return codes for packets.

RCODE_NOERROR
RCODE_FORMERR
RCODE_SERVFAIL
RCODE_NXDOMAIN
RCODE_NOTIMPL
RCODE_REFUSED
RCODE_YXDOMAIN
RCODE_YXRRSET
RCODE_NXRRSET
RCODE_NOTAUTH
RCODE_NOTZONE

Packet data

PKT_QR

Query - query flag.

PKT_AA

Authoritative Answer - server flag.

PKT_TC

Truncated - server flag.

PKT_RD

Recursion desired - query flag.

PKT_CD

Checking disabled - query flag.

PKT_RA

Recursion available - server flag.

PKT_AD

Authenticated data - server flag.

Verbosity value

NO_VERBOSE

No verbose messages.

VERB_OPS

Operational information.

VERB_DETAIL

Detailed information.

VERB_QUERY

Query level information.

VERB_ALGO

Algorithm level information.