Adding DNS proxy proto

This commit is contained in:
Chris Chapman 2022-09-29 21:14:16 -07:00
parent f85ca92921
commit a5f93069ea
No known key found for this signature in database
GPG Key ID: CE72AB12033D3DEB
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
syntax = "proto3";
package hashicorp.consul.dns;
option go_package = "github.com/hashicorp/consul/proto-public/pbdns";
service DNSService {
// Query sends a DNS request over to Consul server and returns a DNS reply message.
rpc Query(QueryRequest) returns (QueryResponse) {}
}
enum Protocol {
PROTOCOL_UNSET_UNSPECIFIED = 0;
PROTOCOL_TCP = 1;
PROTOCOL_UDP = 2;
}
message QueryRequest {
// msg is the DNS request message.
bytes msg = 1;
// protocol is the protocol of the request
Protocol protocol = 2;
}
message QueryResponse {
// msg is the DNS reply message.
bytes msg = 1;
}