From f6209eaf7cf17b5abe14a6f57847d381d44e9fd3 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 21 Jan 2016 17:46:37 +0100 Subject: [PATCH] Allow lowercase typeXXXX record types Fixes a part of #3237 --- pdns/dnsparser.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsparser.hh b/pdns/dnsparser.hh index 17d2a57fa..8b4d2bae7 100644 --- a/pdns/dnsparser.hh +++ b/pdns/dnsparser.hh @@ -218,7 +218,7 @@ public: if(iter != getN2Typemap().end()) return iter->second.second; - if(boost::starts_with(name, "TYPE")) + if(boost::starts_with(name, "TYPE") || boost::starts_with(name, "type")) return pdns_stou(name.substr(4)); throw runtime_error("Unknown DNS type '"+name+"'"); -- 2.40.0