Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 409 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 409 Bytes

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