【文件属性】:
文件名称:fpdns:快速专用DNS,提供自定义的DNS记录配置和DNS解析缓存
文件大小:19KB
文件格式:ZIP
更新时间:2021-04-03 17:39:44
Go
fpdns
快速专用DNS,提供自定义的DNS记录配置和DNS解析缓存。
特性:
A记录
CNAME
泛解析
DNS负载均衡
缓存DNS解析结果
上游同时多DNS服务器查询
安装
直接执行如下命令:
./build.sh
会生成阳离子文件fpdns在bin目录。
运行
./fpdns -conf_dir ./conf
命令行参数:
Usage of ./fpdns:
-addr string
监听的ip和端口, 例如 :53 或者 127.0.0.1:53 (default ":53")
-cache_ttl int
缓存DNS解析结果的过期时间,单位秒。默认30秒。 (default 30)
-conf_dir string
读取配置的目录
-http_addr string
http服务监听的ip和端口, 例如 :8666
【文件预览】:
fpdns-main
----conf()
--------test.dns-conf(552B)
--------resolv.conf(118B)
--------k8s()
--------mydomain.com.dns-conf(0B)
----build.sh(422B)
----go.mod(209B)
----main.go(2KB)
----go.sum(4KB)
----lib()
--------log.go(6KB)
--------cache.go(3KB)
--------resolver.go(3KB)
----release.sh(920B)
----README.md(5KB)
----.gitignore(136B)
----server()
--------ping.go(1KB)
--------server.go(7KB)
--------http.go(2KB)
--------conf.go(4KB)