QZLin

coredns源码构建记录&添加插件(>=win10,x64)

推荐使用powershell7作为windows shell

source

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
  1. go generate
  2. go build

posted on 2022-06-25 00:31  QZLin  阅读(91)  评论(0编辑  收藏  举报

导航