We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在我开发的项目notr内网穿透当中引入DNS来解决动态配置*.notr.tech的A记录的问题,针对用户test,每次客户端连上来之后都要设置test.notr.tech的A记录为当前连接的服务器。目前DNS版本还非常简单,已经开源成notrns项目。但是这个项目还有几个问题:
通过github了解到CoreDNS和etcd两个项目,就琢磨着用CoreDNS代替notrns来做动态域名解析,使用etcd来做存储。
按照这种流程进行,迁移方便,开发量也少,扩展起来也容易。
CoreFile:
notr.tech { etcd { path /skydns endpoint http://localhost:2379 upstream } log }
➜ bin git:(master) ./etcdctl put /skydns/tech/notr/yingjiu/ '{"host":"192.168.1.2"}' OK ➜ bin git:(master) nslookup yingjiu.notr.tech 127.0.0.1 Server: 127.0.0.1 Address: 127.0.0.1#53 Name: yingjiu.notr.tech Address: 192.168.1.2 ➜ bin git:(master) ./etcdctl put /skydns/tech/notr/yingjiu/ '{"host":"192.168.1.3"}' OK ➜ bin git:(master) nslookup yingjiu.notr.tech 127.0.0.1 Server: 127.0.0.1 Address: 127.0.0.1#53 Name: yingjiu.notr.tech Address: 192.168.1.3 ➜ bin git:(master)
接下来只需要在registry将etcd client集成进去即可,改造完之后整个软件变成了下图所示的流程。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在我开发的项目notr内网穿透当中引入DNS来解决动态配置*.notr.tech的A记录的问题,针对用户test,每次客户端连上来之后都要设置test.notr.tech的A记录为当前连接的服务器。目前DNS版本还非常简单,已经开源成notrns项目。但是这个项目还有几个问题:
通过github了解到CoreDNS和etcd两个项目,就琢磨着用CoreDNS代替notrns来做动态域名解析,使用etcd来做存储。
按照这种流程进行,迁移方便,开发量也少,扩展起来也容易。
测试
CoreFile:
接下来只需要在registry将etcd client集成进去即可,改造完之后整个软件变成了下图所示的流程。
The text was updated successfully, but these errors were encountered: