coredns源码构建记录&添加插件(>=win10,x64)
推荐使用powershell7作为windows shellsource
github/coredns
git clone https://github.com/coredns/coredns
env
toolchain
go (golang)
[*]test
go version
dependencies
mirror
https://goproxy.io/zh/
[*]$env:GOPROXY = "https://proxy.golang.com.cn,direct"
build
go get
go build
[*]target->coredns.exe
add plugin
Compile Time Enabling or Disabling Plugins
[*]cp plugin dir to /plugin/plugin_name
[*]edit plugin.cfg
[*]go generate
[*]go build
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
页:
[1]