Constants: Opcode & Type

Opcode – Query opcode

class Opcode

Constants of the Opcode module represent DNS query opcodes. Some of the opcodes are described in RFC 1035. The following constants are defined: QUERY, IQUERY, STATUS, NOTIFY, UPDATE.

The standard query is for example Opcode.QUERY.

Type – Query type

class Type

Constants of the Type module represent DNS query types. The following constants are defined:

A
a host address
NS
an authoritative name server
MD
a mail destination (Obsolete - use MX)
MF
a mail forwarder (Obsolete - use MX)
CNAME
the canonical name for an alias
SOA
marks the start of a zone of authority
MB
mailbox domain name (EXPERIMENTAL)
MG
mail group member (EXPERIMENTAL)
MR
mail rename domain name (EXPERIMENTAL)
NULL
null RR (EXPERIMENTAL)
WKS
well known service description

PTR = 12 # a domain name pointer HINFO = 13 # host information MINFO = 14 # mailbox or mail list information MX = 15 # mail exchange TXT = 16 # text strings AAAA = 28 # IPv6 AAAA records (RFC 1886) SRV = 33 # DNS RR for specifying the location of services (RFC 2782) UNAME = 110 MP = 240 AXFR = 252 # A request for a transfer of an entire zone MAILB = 253 # A request for mailbox-related records (MB, MG or MR) MAILA = 254 # A request for mail agent RRs (Obsolete - see MX) ANY = 255 # A request for all records

Table Of Contents

Previous topic

Welcome to pyDNS’s documentation!

This Page