summaryrefslogtreecommitdiff
path: root/net-dns/pdns/files/pdns-4.9.1-lua-records-optional.patch
blob: 6a90e0d14cd4b3a518b4ac82eb03a11ed5c4e38c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/pdns/pdnsutil.cc
+++ b/pdns/pdnsutil.cc
@@ -378,6 +378,7 @@ static int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, con
     if(rr.qtype.getCode() == QType::A || rr.qtype.getCode() == QType::AAAA) {
       addresses.insert(rr.qname);
     }
+#ifdef HAVE_LUA_RECORDS
     if(rr.qtype.getCode() == QType::LUA) {
       shared_ptr<DNSRecordContent> drc(DNSRecordContent::make(rr.qtype.getCode(), QClass::IN, rr.content));
       auto luarec = std::dynamic_pointer_cast<LUARecordContent>(drc);
@@ -386,6 +387,7 @@ static int checkZone(DNSSECKeeper &dk, UeberBackend &B, const DNSName& zone, con
         addresses.insert(rr.qname);
       }
     }
+#endif
     if(rr.qtype.getCode() == QType::A) {
       arecords.insert(rr.qname);
     }