]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Make sure rec does not know ALIAS and LUA
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 23 Feb 2022 09:18:48 +0000 (10:18 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 23 Feb 2022 09:21:18 +0000 (10:21 +0100)
pdns/dnsrecords.cc
pdns/dnsrecords.hh
pdns/qtype.cc
pdns/qtype.hh

index f9379e3a391b261b3c8d838b5c4788064f9b9a3d..4f581cbc0340def73b3d4cc6058132dad4545bf5 100644 (file)
@@ -140,7 +140,9 @@ boilerplate_conv(AAAA, conv.xfrIP6(d_ip6); );
 boilerplate_conv(NS, conv.xfrName(d_content, true));
 boilerplate_conv(PTR, conv.xfrName(d_content, true));
 boilerplate_conv(CNAME, conv.xfrName(d_content, true));
+#if !defined(RECURSOR)
 boilerplate_conv(ALIAS, conv.xfrName(d_content, false));
+#endif
 boilerplate_conv(DNAME, conv.xfrName(d_content));
 boilerplate_conv(MB, conv.xfrName(d_madname, true));
 boilerplate_conv(MG, conv.xfrName(d_mgmname, true));
@@ -930,7 +932,9 @@ void reportOtherTypes()
    MRRecordContent::report();
    AFSDBRecordContent::report();
    DNAMERecordContent::report();
+#if !defined(RECURSOR)
    ALIASRecordContent::report();
+#endif
    SPFRecordContent::report();
    NAPTRRecordContent::report();
    KXRecordContent::report();
index e587edf68aa35ae51987362b4347640eebe76294..3dc3efae42e926d967f459df63811d5ec3553877 100644 (file)
@@ -266,6 +266,7 @@ private:
   DNSName d_content;
 };
 
+#if !defined(RECURSOR)
 class ALIASRecordContent : public DNSRecordContent
 {
 public:
@@ -273,7 +274,7 @@ public:
 
   DNSName d_content;
 };
-
+#endif
 
 class DNAMERecordContent : public DNSRecordContent
 {
index 3a6a7fa86e1db4714c2bc023db212869a2268589..53d05c0edbe9ad30e45530864f264b468bc6ff4b 100644 (file)
@@ -94,8 +94,10 @@ const map<const string, uint16_t> QType::names = {
   {"CAA", 257},
   {"DLV", 32769},
   {"ADDR", 65400},
+#if !defined(RECURSOR)
   {"ALIAS", 65401},
   {"LUA", 65402},
+#endif
 };
 
 static map<uint16_t, const string> swapElements(const map<const string, uint16_t>& names) {
index f1d4baa3b60dbed47e9ed58abf1e0c2a497e78c9..795b295c23711f64f68cb3b098c5436a4b911462 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 #pragma once
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "namespaces.hh"
 
 /** The QType class is meant to deal easily with the different kind of resource types, like 'A', 'NS',
@@ -57,7 +61,7 @@ public:
   bool isMetadataType() const;
 
   static uint16_t chartocode(const char* p);
-  
+
   enum typeenum : uint16_t {
     ENT = 0,
     A = 1,
@@ -123,8 +127,10 @@ public:
     CAA = 257,
     DLV = 32769,
     ADDR = 65400,
+#if !defined(RECURSOR)
     ALIAS = 65401,
     LUA = 65402
+#endif
   };
 
   const static map<const string, uint16_t> names;