~ubuntu-branches/ubuntu/gutsy/python-dns/gutsy-security

« back to all changes in this revision

Viewing changes to DNS/Status.py

  • Committer: Bazaar Package Importer
  • Author(s): Joerg Wendland
  • Date: 2003-08-20 14:25:29 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20030820142529-3facqpkoslard81q
Tags: 2.3.0-5
* debian/control:
  Use ${python:Depends} for Depends, so that correct Depends are
  generated by dh_python. (closes: Bug#205884)
* debian/python-dns.postinst
  debian/python-dns.prerm:
  Remove these files and let debhelper handle these issues.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
"""
2
 
 $Id: Status.py,v 1.5 2002/03/19 12:41:33 anthonybaxter Exp $
 
2
 $Id: Status.py,v 1.7 2002/04/23 12:52:19 anthonybaxter Exp $
3
3
 
4
4
 This file is part of the pydns project.
5
5
 Homepage: http://pydns.sourceforge.net
9
9
 Status values in message header
10
10
"""
11
11
 
12
 
NOERROR       = 0
13
 
FORMERR       = 1
14
 
SERVFAIL      = 2
15
 
NXDOMAIN      = 3
16
 
NOTIMP        = 4
17
 
REFUSED       = 5
 
12
NOERROR   = 0 #   No Error                           [RFC 1035]
 
13
FORMERR   = 1 #   Format Error                       [RFC 1035]
 
14
SERVFAIL  = 2 #   Server Failure                     [RFC 1035]
 
15
NXDOMAIN  = 3 #   Non-Existent Domain                [RFC 1035]
 
16
NOTIMP    = 4 #   Not Implemented                    [RFC 1035]
 
17
REFUSED   = 5 #   Query Refused                      [RFC 1035]
 
18
YXDOMAIN  = 6 #   Name Exists when it should not     [RFC 2136]
 
19
YXRRSET   = 7 #   RR Set Exists when it should not   [RFC 2136]
 
20
NXRRSET   = 8 #   RR Set that should exist does not  [RFC 2136]
 
21
NOTAUTH   = 9 #   Server Not Authoritative for zone  [RFC 2136]
 
22
NOTZONE   = 10 #  Name not contained in zone         [RFC 2136]
 
23
BADVERS   = 16 #  Bad OPT Version                    [RFC 2671]
 
24
BADSIG    = 16 #  TSIG Signature Failure             [RFC 2845]
 
25
BADKEY    = 17 #  Key not recognized                 [RFC 2845]
 
26
BADTIME   = 18 #  Signature out of time window       [RFC 2845]
 
27
BADMODE   = 19 #  Bad TKEY Mode                      [RFC 2930]
 
28
BADNAME   = 20 #  Duplicate key name                 [RFC 2930]
 
29
BADALG    = 21 #  Algorithm not supported            [RFC 2930]
18
30
 
19
31
# Construct reverse mapping dictionary
20
32
 
29
41
 
30
42
#
31
43
# $Log: Status.py,v $
 
44
# Revision 1.7  2002/04/23 12:52:19  anthonybaxter
 
45
# cleanup whitespace.
 
46
#
 
47
# Revision 1.6  2002/04/23 10:57:57  anthonybaxter
 
48
# update to complete the list of response codes.
 
49
#
32
50
# Revision 1.5  2002/03/19 12:41:33  anthonybaxter
33
51
# tabnannied and reindented everything. 4 space indent, no tabs.
34
52
# yay.