Permalink
Browse files

implement MINFO. Why you ask? MINFO is one of the original RFC1035 ty…

…pes, and can thus be compressed. NSD does such compression, and if we don't support MINFO we fail to decompress it.
  • Loading branch information...
1 parent c6c610a commit 7c0b8593fd379517d2e634a54b967caca69a8d12 @ahupowerdns ahupowerdns committed with Habbie Jun 13, 2013
Showing with 10 additions and 0 deletions.
  1. +1 −0 pdns/dnsrecords.cc
  2. +9 −0 pdns/dnsrecords.hh
View
@@ -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));
View
@@ -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
{

0 comments on commit 7c0b859

Please sign in to comment.