Package DNS :: Module resolver :: Class Answer
[show private | hide private]
[frames | no frames]

Class Answer

object --+
         |
        Answer


DNS stub resolver answer

Instances of this class bundle up the result of a successful DNS resolution.

For convenience, the answer is iterable. "for a in answer" is equivalent to "for a in answer.rdataset".

Note that CNAMEs or DNAMEs in the response may mean that answer node's name might not be the query name.
Method Summary
  __init__(self, qname, rdtype, rdclass, response)
  __getattr__(self, attr)
  __iter__(self)
  __len__(self)
a new object with type S, a subtype of T __new__(S, ...)

Instance Variable Summary
DNS.node.Node object node - The node of the answer
DNS.name.Name object qname - The query name
DNS.rdataset.Rdataset object rdataset - The answer
int rdclass - The query class
int rdtype - The query type
DNS.message.Message object response - The response message

Method Details

__new__(S, ...)

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

Instance Variable Details

node

The node of the answer
Type:
DNS.node.Node object

qname

The query name
Type:
DNS.name.Name object

rdataset

The answer
Type:
DNS.rdataset.Rdataset object

rdclass

The query class
Type:
int

rdtype

The query type
Type:
int

response

The response message
Type:
DNS.message.Message object

Generated by Epydoc 1.1 on Tue Jun 17 03:55:15 2003 http://epydoc.sf.net