Skip to content

wusphinx/embedns

Repository files navigation

embedns

一个轻量型支持API动态更新的DNS Server(coredns+embed etcd)

example

  1. 启动服务
go run main.go

or

cd example && docker-compose up 
  1. 写入A记录
etcdctl put /coredns/helloworld/x1 '{"host":"192.168.1.8","ttl":60}'
  1. 域名解析验证
❯ nslookup helloworld localhost
Server:		localhost
Address:	::1#53

Name:	helloworld
Address: 192.168.1.8

About

a tiny dns server which is made up of coredns and embed etcd

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published