CoreDNS plugins need to be compiled into the main CoreDNS binary, with some minor changes to include the plugin.
- clone the main coredns repo
- clone coredns_omada repo
- both repos should share the same parent directory:
user@pc:/repos$ tree
.
├── coredns
└── coredns_omada- in
coredns/plugin.cfgadd the following line directly above theroute53:route53entry:omada:github.com/dougbw/coredns_omada - (this step is only required for local development of coredns_omada): in
coredns/go.modadd the following line to the END of the file. The following example assumes you have thecoredns_omadarepo located at/repos/coredns_omadaso this needs to match your system.
replace github.com/dougbw/coredns_omada => /repos/coredns_omada
- run
makefrom thecorednsrepo - grab the
corednsbinary and add yourCorefileconfiguration file
See setting up docker for multi-platform builds
docker buildx build --platform linux/amd64,linux/arm64 -t coredns-omada .
docker buildx build --platform linux/amd64 -t coredns-omada .
docker buildx build --platform linux/arm64 -t coredns-omada .