curl -sL https://gist.githubusercontent.com/vi7/e41b07ff7d0fb845ac281cd940876e2a/raw/coredns_installer_asuswrt_merlin.sh | sh && rm -f coredns_installer_asuswrt_merlin.sh
Prepare Corefile
and zone files (if needed) using examples from this gist, create launcher script /jffs/addons/coredns/coredns.sh
with the following contents:
#!/usr/bin/env sh
nohup /jffs/addons/coredns/coredns --conf /jffs/etc/coredns/Corefile | logger -s -c -t coredns
Add following lines to the services start script /jffs/scripts/services-start
:
logger -c -t services-start "Starting CoreDNS"
/jffs/addons/coredns/coredns.sh &
Disable builtin DNS server by creating /jffs/configs/dnsmasq.conf.add
with port=0
inside (this does not disable DHCP)
Reboot router