From: Bert Hubert Date: Sun, 8 Apr 2007 21:02:04 +0000 (+0000) Subject: reimplement MR records X-Git-Tag: pdns-2.9.21~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e0805a61129cf104f55628afd05e64f034f7cfc;p=pdns reimplement MR records git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1019 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/dnsrecords.cc b/pdns/dnsrecords.cc index b3df250c0..524336049 100644 --- a/pdns/dnsrecords.cc +++ b/pdns/dnsrecords.cc @@ -175,6 +175,7 @@ string NSECRecordContent::getZoneRepresentation() const 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, false)); 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 69b1235f1..d36002104 100644 --- a/pdns/dnsrecords.hh +++ b/pdns/dnsrecords.hh @@ -133,6 +133,15 @@ private: string d_content; }; +class MRRecordContent : public DNSRecordContent +{ +public: + includeboilerplate(MR) + +private: + string d_alias; +}; + class OPTRecordContent : public DNSRecordContent {