Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

poslib/dnsdefs.h

Go to the documentation of this file.

  
00001 /* 00002 Posadis - A DNS Server 00003 DNS definitions 00004 Copyright (C) 2002 Meilof Veeningen <> 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 00021 #ifndef __DNS_DNSDEFS_H 00022 #define __DNS_DNSDEFS_H 00023 00031 /* RR types */ 00032 00033 #define DNS_TYPE_A 1 00034 #define DNS_TYPE_NS 2 00035 #define DNS_TYPE_MD 3 00036 #define DNS_TYPE_MF 4 00037 #define DNS_TYPE_CNAME 5 00038 #define DNS_TYPE_SOA 6 00039 #define DNS_TYPE_MB 7 00040 #define DNS_TYPE_MG 8 00041 #define DNS_TYPE_MR 9 00042 #define DNS_TYPE_NULL 10 00043 #define DNS_TYPE_WKS 11 00044 #define DNS_TYPE_PTR 12 00045 #define DNS_TYPE_HINFO 13 00046 #define DNS_TYPE_MINFO 14 00047 #define DNS_TYPE_MX 15 00048 #define DNS_TYPE_TXT 16 00049 #define DNS_TYPE_RP 17 00050 #define DNS_TYPE_AFSDB 18 00051 #define DNS_TYPE_PX 26 00052 #define DNS_TYPE_AAAA 28 00053 #define DNS_TYPE_LOC 29 00054 #define DNS_TYPE_SRV 33 00055 #define DNS_TYPE_NAPTR 35 00056 #define DNS_TYPE_A6 38 00057 #define DNS_TYPE_DNAME 39 00059 /* QTYPEs */ 00060 00061 #define QTYPE_IXFR 251 00062 #define QTYPE_AXFR 252 00063 #define QTYPE_MAILB 253 00064 #define QTYPE_MAILA 254 00065 #define QTYPE_ALL 255 00066 #define QTYPE_ANY 255 00068 /* DNS classes */ 00069 00070 #define CLASS_IN 1 00071 #define CLASS_CS 2 00072 #define CLASS_CH 3 00073 #define CLASS_HS 4 00075 /* QCLASSes */ 00076 00077 #define QCLASS_ANY 255 00078 #define QCLASS_ALL 255 00080 /* RCODEs */ 00081 00082 #define RCODE_NOERROR 0 00083 #define RCODE_QUERYERR 1 00084 #define RCODE_SERVFAIL 2 00085 #define RCODE_SRVFAIL 2 00086 #define RCODE_NXDOMAIN 3 00087 #define RCODE_NOTIMP 4 00088 #define RCODE_REFUSED 5 00089 #define RCODE_NOTAUTH 9 00091 /* OPCODEs */ 00092 00093 #define OPCODE_QUERY 0 00094 #define OPCODE_IQUERY 1 00095 #define OPCODE_STATUS 2 00096 #define OPCODE_COMPLETION 3 00097 #define OPCODE_NOTIFY 4 00098 #define OPCODE_UPDATE 5 00100 #endif /* __DNS_DNSDEFS_H */ 00101

  
Generated on Fri Dec 24 19:55:14 2004 for Poslib by doxygen 1.3.7