]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Google Protocol Buffers coming to PowerDNSSEC for transporting records & signatures
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 5 Feb 2011 11:26:53 +0000 (11:26 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 5 Feb 2011 11:26:53 +0000 (11:26 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1973 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnsrecord.proto [new file with mode: 0644]

diff --git a/pdns/dnsrecord.proto b/pdns/dnsrecord.proto
new file mode 100644 (file)
index 0000000..653b951
--- /dev/null
@@ -0,0 +1,20 @@
+package DNSProtoBuf;
+
+message DNSResourceRecord {
+  required string qname = 1;
+  required int32 qtype = 2;
+  required string content = 3;
+  required int32 ttl = 4;
+  optional int32 priority = 5;
+  enum Place {
+       QUESTION = 0;
+       ANSWER = 1;
+       AUTHORITY = 2;
+       ADDITIONAL = 3;
+  }
+  required Place place = 6;
+}
+
+message DNSResourceRecordVector {
+  repeated DNSResourceRecord dnsrecord = 1;
+}