embedns

command module
v0.0.0-...-75cfc9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL