- Build and run a consul dev server from the
ishustava/dns-proxy-poc
branch:make dev ./bin/consul agent -server -dev
- Register a service
./bin/consul services register -name foo -address 1.1.1.1 -port 8000
- Run this proxy in another terminal:
go run main.go
- Try to resolve DNS:
dig @localhost -p 8053 foo.service.consul