ishustava / dns-proxy-poc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dns-proxy-poc

How to use

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

About


Languages

Language:Go 100.0%