coredns源码构建记录&添加插件(>=win10,x64)
推荐使用powershell7作为windows shell
source
github/coredns
git clone https://github.com/coredns/coredns
env
toolchain
- test
go version
dependencies
mirror
$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