From acedb99e6d86d129215a0cffdc6de9ea173ff9ed Mon Sep 17 00:00:00 2001 From: bert hubert Date: Mon, 5 Sep 2016 11:01:57 +0200 Subject: [PATCH] make an ENTRecordType --- pdns/dnsrecords.cc | 2 ++ pdns/dnsrecords.hh | 6 ++++++ pdns/qtype.hh | 1 + 3 files changed, 9 insertions(+) diff --git a/pdns/dnsrecords.cc b/pdns/dnsrecords.cc index ed0fa7586..b0d5b5948 100644 --- a/pdns/dnsrecords.cc +++ b/pdns/dnsrecords.cc @@ -150,6 +150,7 @@ boilerplate_conv(DNAME, QType::DNAME, conv.xfrName(d_content)); boilerplate_conv(MR, QType::MR, conv.xfrName(d_alias, true)); boilerplate_conv(MINFO, QType::MINFO, conv.xfrName(d_rmailbx, true); conv.xfrName(d_emailbx, true)); boilerplate_conv(TXT, QType::TXT, conv.xfrText(d_text, true)); +boilerplate_conv(ENT, 0, ); boilerplate_conv(SPF, 99, conv.xfrText(d_text, true)); boilerplate_conv(HINFO, QType::HINFO, conv.xfrText(d_cpu); conv.xfrText(d_host)); @@ -592,6 +593,7 @@ void reportOtherTypes() SPFRecordContent::report(); NAPTRRecordContent::report(); LOCRecordContent::report(); + ENTRecordContent::report(); HINFORecordContent::report(); RPRecordContent::report(); KEYRecordContent::report(); diff --git a/pdns/dnsrecords.hh b/pdns/dnsrecords.hh index e80e9a139..a597162fb 100644 --- a/pdns/dnsrecords.hh +++ b/pdns/dnsrecords.hh @@ -164,6 +164,12 @@ public: string d_text; }; +class ENTRecordContent : public DNSRecordContent +{ +public: + includeboilerplate(ENT) +}; + class SPFRecordContent : public DNSRecordContent { public: diff --git a/pdns/qtype.hh b/pdns/qtype.hh index 3e78cb034..1514e04e8 100644 --- a/pdns/qtype.hh +++ b/pdns/qtype.hh @@ -77,6 +77,7 @@ public: static int chartocode(const char *p); //!< convert a character string to a code enum typeenum : uint16_t { + ENT=0, A=1, NS=2, CNAME=5, -- 2.50.1