Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dnsdefs.h
Go to the documentation of this file.
1 /*
2  Posadis - A DNS Server
3  DNS definitions
4  Copyright (C) 2002 Meilof Veeningen <meilof@users.sourceforge.net>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20 
21 #ifndef __DNS_DNSDEFS_H
22 #define __DNS_DNSDEFS_H
23 
31 /* RR types */
32 
33 #define DNS_TYPE_A 1
34 #define DNS_TYPE_NS 2
35 #define DNS_TYPE_MD 3
36 #define DNS_TYPE_MF 4
37 #define DNS_TYPE_CNAME 5
38 #define DNS_TYPE_SOA 6
39 #define DNS_TYPE_MB 7
40 #define DNS_TYPE_MG 8
41 #define DNS_TYPE_MR 9
42 #define DNS_TYPE_NULL 10
43 #define DNS_TYPE_WKS 11
44 #define DNS_TYPE_PTR 12
45 #define DNS_TYPE_HINFO 13
46 #define DNS_TYPE_MINFO 14
47 #define DNS_TYPE_MX 15
48 #define DNS_TYPE_TXT 16
49 #define DNS_TYPE_RP 17
50 #define DNS_TYPE_AFSDB 18
51 #define DNS_TYPE_PX 26
52 #define DNS_TYPE_AAAA 28
53 #define DNS_TYPE_LOC 29
54 #define DNS_TYPE_SRV 33
55 #define DNS_TYPE_NAPTR 35
56 #define DNS_TYPE_A6 38
57 #define DNS_TYPE_DNAME 39
59 #define DNS_TYPE_TSIG 250
61 /* QTYPEs */
62 
63 #define QTYPE_NONE 0
64 #define QTYPE_IXFR 251
65 #define QTYPE_AXFR 252
66 #define QTYPE_MAILB 253
67 #define QTYPE_MAILA 254
68 #define QTYPE_ALL 255
69 #define QTYPE_ANY 255
71 /* DNS classes */
72 
73 #define CLASS_IN 1
74 #define CLASS_CS 2
75 #define CLASS_CH 3
76 #define CLASS_HS 4
78 /* QCLASSes */
79 
80 #define QCLASS_NONE 254
81 #define QCLASS_ANY 255
82 #define QCLASS_ALL 255
84 /* RCODEs */
85 
86 #define RCODE_NOERROR 0
87 #define RCODE_QUERYERR 1
88 #define RCODE_SERVFAIL 2
89 #define RCODE_SRVFAIL 2
90 #define RCODE_NXDOMAIN 3
91 #define RCODE_NOTIMP 4
92 #define RCODE_REFUSED 5
93 #define RCODE_YXDOMAIN 6
94 #define RCODE_YXRRSET 7
95 #define RCODE_NXRRSET 8
96 #define RCODE_NOTAUTH 9
97 #define RCODE_NOTZONE 10
99 #define RCODE_BADSIG 16
100 #define RCODE_BADKEY 17
101 #define RCODE_BADTIME 18
103 /* OPCODEs */
104 
105 #define OPCODE_QUERY 0
106 #define OPCODE_IQUERY 1
107 #define OPCODE_STATUS 2
108 #define OPCODE_COMPLETION 3
109 #define OPCODE_NOTIFY 4
110 #define OPCODE_UPDATE 5
112 #endif /* __DNS_DNSDEFS_H */
113