Package DNS :: Module update :: Class Update
[show private | hide private]
[frames | no frames]

Class Update

object --+    
         |    
   Message --+
             |
            Update


Method Summary
  __init__(self, zone, rdclass, keyring, keyname)
Initialize a new DNS Update object.
bool __eq__(self, other)
Two messages are equal if they have the same content in the header, question, answer, and authority sections. (inherited from Message)
bool __ne__(self, other)
Are two messages not equal? (inherited from Message)
a new object with type S, a subtype of T __new__(S, ...)
  __repr__(self)
(inherited from Message)
  __str__(self)
(inherited from Message)
  absent(self, name, rdtype)
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.
  delete(self, name, *args)
Delete records.
DNS.node.Node object find_node(self, section, name, create, force_unique)
Find the node named namein the specified section. (inherited from Message)
  get_question(self, qcount)
Read the next qcountrecords from the wire data and add them to the question section. (inherited from Message)
  get_section(self, section, count)
Read the next countrecords from the wire data and add them to the specified section. (inherited from Message)
bool is_response(self, other)
Is other a response to self? (inherited from Message)
  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.
  rcode(self)
(inherited from Message)
  replace(self, name, *args)
Replace records.
string to_wire(self, origin)
Return a string containing the update in DNS compressed wire format.
  use_edns(self, edns, ednsflags, payload)
Configure EDNS behavior. (inherited from Message)
  use_tsig(self, keyring, keyname)
When sending, a TSIG signature using the specified keyring and keyname should be added. (inherited from Message)

Method Details

__init__(self, zone, rdclass=1, keyring=None, keyname=None)
(Constructor)

Initialize a new DNS Update object.
Parameters:
zone - The zone which is being updated.
           (type=A DNS.name.Name or string)
rdclass - The class of the zone; defaults to DNS.rdataclass.IN.
           (type=An int designating the class, or a string whose value is the name of a class.)
keyring - The TSIG keyring to use; defaults to None.
           (type=dict)
keyname - The name of the TSIG key to use; defaults to None. The key must be defined in the keyring. If a keyring is specified but a keyname is not, then the key used will be the first key in the keyring. Note that the order of keys in a dictionary is not defined, so applications should supply a keyname when a keyring is used, unless they know the keyring contains only one key.
           (type=DNS.name.Name or string)

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

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:
  • rdataset...
  • ttl, rdata...
  • ttl, rdtype, string...

delete(self, name, *args)

Delete records. The first argument is always a name. The other arguments can be:
  • nothing
  • rdataset...
  • rdata...
  • rdtype, [string...]

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:
  • rdataset...
  • rdata...
  • rdtype, string...

replace(self, name, *args)

Replace records. The first argument is always a name. The other arguments can be:
  • rdataset...
  • ttl, rdata...
  • ttl, rdtype, string...
Note that if you want to replace the entire node, you should do a delete of the name followed by one or more calls to add.

to_wire(self, origin=None)

Return a string containing the update in DNS compressed wire format.
Returns:
string

Generated by Epydoc 1.1 on Thu Jun 5 22:37:32 2003 http://epydoc.sf.net