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

打印 上一主题 下一主题

主题 552|帖子 552|积分 1656

推荐使用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
  1. go get
  2. 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

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

尚未崩坏

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表