From: bert hubert Date: Thu, 13 Jun 2013 09:59:29 +0000 (+0200) Subject: implement MINFO. Why you ask? MINFO is one of the original RFC1035 types, and can... X-Git-Tag: auth-3.3-rc2~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c0b8593fd379517d2e634a54b967caca69a8d12;p=thirdparty%2Fpdns.git implement MINFO. Why you ask? MINFO is one of the original RFC1035 types, and can thus be compressed. NSD does such compression, and if we don't support MINFO we fail to decompress it. --- diff --git a/pdns/dnsrecords.cc b/pdns/dnsrecords.cc index 6716cd0f2e..c82035df42 100644 --- a/pdns/dnsrecords.cc +++ b/pdns/dnsrecords.cc @@ -44,6 +44,7 @@ boilerplate_conv(NS, ns_t_ns, conv.xfrLabel(d_content, true)); boilerplate_conv(PTR, ns_t_ptr, conv.xfrLabel(d_content, true)); boilerplate_conv(CNAME, ns_t_cname, conv.xfrLabel(d_content, true)); boilerplate_conv(MR, ns_t_mr, conv.xfrLabel(d_alias, true)); +boilerplate_conv(MINFO, ns_t_minfo, conv.xfrLabel(d_rmailbx, true); conv.xfrLabel(d_emailbx, true)); boilerplate_conv(TXT, ns_t_txt, conv.xfrText(d_text, true)); boilerplate_conv(SPF, 99, conv.xfrText(d_text, true)); boilerplate_conv(HINFO, ns_t_hinfo, conv.xfrText(d_cpu); conv.xfrText(d_host)); diff --git a/pdns/dnsrecords.hh b/pdns/dnsrecords.hh index 63d140cb3d..86acb38790 100644 --- a/pdns/dnsrecords.hh +++ b/pdns/dnsrecords.hh @@ -206,6 +206,15 @@ private: string d_alias; }; +class MINFORecordContent : public DNSRecordContent +{ +public: + includeboilerplate(MINFO) + +private: + string d_rmailbx; + string d_emailbx; +}; class OPTRecordContent : public DNSRecordContent {