From a8026358f55feb13e84bfc73683a92a26e2c616b Mon Sep 17 00:00:00 2001 From: bert hubert Date: Thu, 13 Jun 2013 11:59:29 +0200 Subject: [PATCH] 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. --- pdns/dnsrecords.cc | 1 + pdns/dnsrecords.hh | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/pdns/dnsrecords.cc b/pdns/dnsrecords.cc index c532e1af7..91a2a0173 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 719f55a30..b9020a61b 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 { -- 2.50.0