Scripts, utilities, and examples for deploying CoreDNS.
The default settings will proxy all requests to hostnames not found in your host file to Google's DNS-over-HTTPS.
brew tap "coredns/deployment" "https://github.com/coredns/deployment"
brew install coredns
sudo brew services start coredns
- test with
dig google.com @127.0.0.1and you should see
Using CoreDNS as your default resolver:
- Open Network Preferences
- Select your interface i.e Wi-Fi
- Select the
- Click the
DNS Serverslist box
127.0.0.1and hit enter
On a debian system:
dpkg-buildpackage -us -uc -b --target-arch ARCHWhere ARCH can be any of the released architectures, like "amd64" or "arm".
- Most users will just run:
dpkg-buildpackage -us -uc -b
dpkg -i coredns_0.9.10-0~9.20_amd64.deb.
This installs the coredns binary in /usr/bin, adds a coredns user (homedir set to /var/lib/coredns) and a small Corefile /etc/coredns.