a simple dns server

required go version >= 1.10
go get -u -v github.com/chennqqi/simpledns
see conf dir
./simpledns -conf [configure uri]
build: ./builddocker.sh
or pull: docker pull sort/simpledns
add a forward upstream in forwards section, see example
- name: consul.
cache_expire: 5m
upstreams:
- 'udp://127.0.0.1:8600'
- name: cluster.local.
cache_expire: 5m
upstreams:
- 'udp://xx.xx.xx.xx:53'
servers:
- name: example.com.
v_zones:
- match_clients: [ "127.0.0.1/24" ]
file: 'conf/zones/t.example.com'
checker: 'ping 10s' # every 10s check once
note: if after ping check, this was no one valid ipaddr. it will ignore check result, return all result.
Apache 2.0 license. See the LICENSE file for details.
Content type
Image
Digest
Size
11.8 MB
Last updated
almost 6 years ago
docker pull sort/simpledns