Skip to content

Commit

Permalink
Add dnsobs.proto to nmsg_base
Browse files Browse the repository at this point in the history
  • Loading branch information
cmikk committed Jun 6, 2023
1 parent 1417a68 commit 8897e5b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions nmsg_base/dnsobs.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
syntax = "proto2";
package nmsg.base;
option go_package = "github.com/farsightsec/go-nmsg/nmsg_base";

message DnsObs {
required uint64 time = 1; // epoch seconds
required bytes response_ip = 2;
required bytes qname = 3;
required uint32 qtype = 4;
required uint32 qclass = 5; //usually IN (1), but not necessarily

// NOERROR, NXDOMAIN, FORMERR, SERVFAIL + TIMEOUT
required uint32 rcode = 6;

// defanged DNS response data
optional bytes response = 7;

// From dnstap if available
optional bytes query_zone = 8;

// sensor-provided geographic context
optional bytes geoid = 9;

// sensor-provided randomized NS identifier
optional fixed32 nsid = 10;
}

0 comments on commit 8897e5b

Please sign in to comment.