Skip to content

Commit

Permalink
implement MINFO. Why you ask? MINFO is one of the original RFC1035 ty…
Browse files Browse the repository at this point in the history
…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
ahupowerdns authored and Peter van Dijk committed Jun 14, 2013
1 parent c6c610a commit 7c0b859
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions pdns/dnsrecords.cc
Expand Up @@ -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));
Expand Down
9 changes: 9 additions & 0 deletions pdns/dnsrecords.hh
Expand Up @@ -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
{
Expand Down

0 comments on commit 7c0b859

Please sign in to comment.