Sample CoreDNS gRPC proxy backend written in Go
Switch branches/tags
Nothing to show
Clone or download
ahmetb use SetReply
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Latest commit 10ea2e6 Jun 6, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pb Initial commit Jun 5, 2018
.gitignore Initial commit Jun 5, 2018
Corefile Initial commit Jun 5, 2018
LICENSE Initial commit Jun 5, 2018
README.md Initial commit Jun 5, 2018
server.go use SetReply Jun 6, 2018

README.md

Sample gRPC backend for CoreDNS

Generate the gRPC stubs

This is only needed if dns.proto is updated:

cd proto
protoc dns.proto --go_out=plugins=grpc:.

Run the server

This will start the backend on port 8053 (udp/tcp):

go build -o main
./main

Start CoreDNS

This will start coredns using the Corefile on port 1053 (udp/tcp) and proxy requests to the backend over gRPC:

coredns

Try it out

$ dig +short @localhost -p 1053 A foo.example.com
127.0.0.1

$ dig +short @localhost -p 1053 AAAA foo.example.com
::1