Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/2354'
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlexis committed Oct 8, 2015
2 parents 86c244a + ad24586 commit 85b85b5
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/markdown/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ Nameserver record. Specifies nameservers for a domain. Stored plainly: 'ns1.powe
## NSEC
Since 2.9.21. The NSEC DNSSEC record type is fully supported, as described in [RFC 3757](http://tools.ietf.org/html/rfc3757). Before 3.0 PowerDNS didn't do any DNSSEC processing, since 3.0 PowerDNS is able to fully process DNSSEC. This can be done with [`pdnssec`](authoritative/dnssec.md#pdnssec "'pdnssec' for PowerDNSSEC command & control").

## OPENPGPKEY
Since 3.5.0. The OPENPGPKEY records, specified in [RFC TBD](https://tools.ietf.org/html/draft-ietf-dane-openpgpkey-02), are used to bind OpenPGP certificates to email addresses.

## PTR
Reverse pointer, used to specify the host name belonging to an IP or IPv6 address. Name is stored plainly: 'www.powerdns.com'. As always, no terminating dot.

Expand Down Expand Up @@ -99,7 +102,7 @@ Since 2.9.21. The SSHFP record type, used for storing Secure Shell (SSH) fingerp
SRV records can be used to encode the location and port of services on a domain name. When encoding, the priority field is used to encode the priority. For example, '\_ldap.\_tcp.dc.\_msdcs.conaxis.ch SRV 0 100 389 mars.conaxis.ch' would be encoded with 0 in the priority field and '100 389 mars.conaxis.ch' in the content field.

## TLSA
Since 3.0. The TLSA record, specified in [RFC 6698](http://tools.ietf.org/html/rfc6698), are used to bind SSL/TLS certificate to named hosts and ports.
Since 3.0. The TLSA records, specified in [RFC 6698](http://tools.ietf.org/html/rfc6698), are used to bind SSL/TLS certificate to named hosts and ports.

## TXT
The TXT field can be used to attach textual data to a domain. Text is stored plainly.
5 changes: 5 additions & 0 deletions pdns/dnsrecords.cc
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ boilerplate_conv(TLSA, 52,
conv.xfrHexBlob(d_cert, true);
)

boilerplate_conv(OPENPGPKEY, 61,
conv.xfrBlob(d_keyring, true);
)

#undef DS
DSRecordContent::DSRecordContent() : DNSRecordContent(43) {}
boilerplate_conv(DS, 43,
Expand Down Expand Up @@ -548,6 +552,7 @@ void reportOtherTypes()
NSEC3RecordContent::report();
NSEC3PARAMRecordContent::report();
TLSARecordContent::report();
OPENPGPKEYRecordContent::report();
DLVRecordContent::report();
DNSRecordContent::regist(QClass::ANY, QType::TSIG, &TSIGRecordContent::make, &TSIGRecordContent::make, "TSIG");
DNSRecordContent::regist(QClass::ANY, QType::TKEY, &TKEYRecordContent::make, &TKEYRecordContent::make, "TKEY");
Expand Down
9 changes: 9 additions & 0 deletions pdns/dnsrecords.hh
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,15 @@ private:
string d_cert;
};

class OPENPGPKEYRecordContent : public DNSRecordContent
{
public:
includeboilerplate(OPENPGPKEY)

private:
string d_keyring;
};


class RRSIGRecordContent : public DNSRecordContent
{
Expand Down
3 changes: 2 additions & 1 deletion pdns/qtype.hh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public:
#undef DS
enum typeenum : uint16_t {A=1, NS=2, CNAME=5, SOA=6, MR=9, WKS=11, PTR=12, HINFO=13, MINFO=14, MX=15, TXT=16, RP=17, AFSDB=18, SIG=24, KEY=25, AAAA=28, LOC=29, SRV=33, NAPTR=35, KX=36,
CERT=37, A6=38, DNAME=39, OPT=41, DS=43, SSHFP=44, IPSECKEY=45, RRSIG=46, NSEC=47, DNSKEY=48, DHCID=49, NSEC3=50, NSEC3PARAM=51,
TLSA=52, CDS=59, CDNSKEY=60, SPF=99, EUI48=108, EUI64=109, TKEY=249, TSIG=250, IXFR=251, AXFR=252, MAILB=253, MAILA=254, ANY=255, ADDR=259,
TLSA=52, CDS=59, CDNSKEY=60, OPENPGPKEY=61, SPF=99, EUI48=108, EUI64=109, TKEY=249, TSIG=250, IXFR=251, AXFR=252, MAILB=253, MAILA=254, ANY=255, ADDR=259,
ALIAS=260, DLV=32769};
typedef pair<string,uint16_t> namenum;
static vector<namenum> names;
Expand Down Expand Up @@ -155,6 +155,7 @@ private:
qtype_insert("TLSA", 52);
qtype_insert("CDS", 59);
qtype_insert("CDNSKEY", 60);
qtype_insert("OPENPGPKEY", 61);
qtype_insert("SPF", 99);
qtype_insert("EUI48", 108);
qtype_insert("EUI64", 109);
Expand Down
2 changes: 2 additions & 0 deletions pdns/test-dnsrecords_cc.cc

Large diffs are not rendered by default.

0 comments on commit 85b85b5

Please sign in to comment.