fixed bug with etc. Added to readme (#18)

This commit is contained in:
Peter Brunner 2017-11-01 17:37:40 -04:00 committed by John Belamaric
parent 5bdbf578d9
commit ddf67e8f98
2 changed files with 18 additions and 3 deletions

View file

@ -58,6 +58,7 @@ class Coredns < Formula
end
(buildpath/"Corefile.example").write default_coredns_config
(etc/"coredns").mkpath
etc.install "Corefile.example" => "coredns/Corefile"
end

View file

@ -3,6 +3,20 @@ Scripts, utilities, and examples for deploying CoreDNS.
## MacOS
To install:
- `brew tap "coredns/deployment" "https://github.com/coredns/deployment"`
- `brew install coredns`
The default settings will proxy all requests to hostnames not found in your host file to Google's DNS-over-HTTPS.
To install:
- Run `brew tap "coredns/deployment" "https://github.com/coredns/deployment"`
- Run `brew install coredns`
- Run `sudo brew services start coredns`
- test with `dig google.com @127.0.0.1` and you should see `SERVER: 127.0.0.1#53(127.0.0.1)`
Using CoreDNS as your default resolver:
- Open Network Preferences
- Select your interface i.e Wi-Fi
- Click `Advanced`
- Select the `DNS` tab
- Click the `+` below the `DNS Servers` list box
- Type `127.0.0.1` and hit enter
- Click `OK`
- Click `Apply`