Home | Trees | Index | Help |
|
---|
Package dns :: Module update :: Class Update |
|
object
--+ |Message
--+ | Update
Method Summary | |
---|---|
Initialize a new DNS Update object. | |
Require that an owner name (and optionally an rdata type) does not exist as a prerequisite to the execution of the update. | |
Add records. | |
Delete records. | |
Require that an owner name (and optionally an rdata type, or specific rdataset) exists as a prerequisite to the execution of the update. | |
Replace records. | |
string |
Return a string containing the update in DNS compressed wire format. |
Add records. | |
Add a single RR to the update section. | |
Inherited from Message | |
bool |
Two messages are equal if they have the same content in the header, question, answer, and authority sections. |
bool |
Are two messages not equal? |
| |
| |
dns.rrset.RRset object |
Find the RRset with the given attributes in the specified section. |
dns.rrset.RRset object or None |
Get the RRset with the given attributes in the specified section. |
bool |
Is other a response to self? |
int |
Return the rcode. |
Set the rcode. | |
string |
Convert the message to text. |
Configure EDNS behavior. | |
When sending, a TSIG signature using the specified keyring and keyname should be added. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value |
Instance Variable Summary | |
---|---|
Inherited from Message | |
list of dns.rrset.RRset objects | additional : The additional data section. |
list of dns.rrset.RRset objects | answer : The answer section. |
list of dns.rrset.RRset objects | authority : The authority section. |
int | edns : The EDNS level to use. |
long | ednsflags : The EDNS flags |
bool | first : Is this message standalone, or the first of a multi message sequence?
This variable is used when validating TSIG signatures on messages which
are part of a zone transfer. |
int | flags : The DNS flags of the message. |
int | fudge : TSIG time fudge; default is 300 seconds. |
bool | had_tsig : Did the message decoded from wire format have a TSIG signature? |
int | id : The query id; the default is a randomly chosen id. |
dns.name.Name object | keyname : The TSIG keyname to use. |
dict | keyring : The TSIG keyring to use. |
string | mac : The TSIG MAC for this message. |
bool | multi : Is this message part of a multi-message sequence? The default is
false. |
dns.name.Name object | origin : The origin of the zone in messages which are used for zone transfers
or for DNS dynamic updates. |
int | original_id : TSIG original id; defaults to the message's id |
string | other_data : TSIG other data. |
int | payload : The EDNS payload size. |
list of dns.rrset.RRset objects | question : The question section. |
string | request_mac : The TSIG MAC of the request message associated with this message; used
when validating TSIG signatures. |
hmac.HMAC object | tsig_ctx : The TSIG signature context associated with this message. |
int | tsig_error : TSIG error code; default is 0. |
bool | xfr : Is the message being used to contain the results of a DNS zone
transfer? The default is False. |
Method Details |
---|
__init__(self,
zone,
rdclass=1,
keyring=None,
keyname=None)
Initialize a new DNS Update object.
|
absent(self, name, rdtype=None)Require that an owner name (and optionally an rdata type) does not exist as a prerequisite to the execution of the update. |
add(self, name, *args)Add records. The first argument is always a name. The other arguments can be:
|
delete(self, name, *args)Delete records. The first argument is always a name. The other arguments can be:
|
present(self, name, *args)Require that an owner name (and optionally an rdata type, or specific rdataset) exists as a prerequisite to the execution of the update. The first argument is always a name. The other arguments can be:
|
replace(self, name, *args)Replace records. The first argument is always a name. The other arguments can be:
|
to_wire(self, origin=None, max_size=65535)Return a string containing the update in DNS compressed wire format.
|
_add(self, replace, section, name, *args)Add records. The first argument is the replace mode. If false, RRs are added to an existing RRset; if true, the RRset is replaced with the specified contents. The second argument is the section to add to. The third argument is always a name. The other arguments can be:
|
_add_rr(self, name, ttl, rd, deleting=None, section=None)Add a single RR to the update section. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Apr 1 12:10:11 2004 | http://epydoc.sf.net |