mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-03-14 14:16:16 +01:00
Remove support for Homebrew on macOS (#218)
Updating the Homebrew formula requires manual intervention on each release and is not part of the general release process which only includes binaries for all platforms and a Docker image. CoreDNS doesn't provide or maintain official packages for any OS. (The Debian dpgk instructions in this repo have to be run by the user themselves and is just considered an example.) Ref: https://github.com/coredns/coredns/pull/3830 Signed-off-by: Frederic Hemberger <mail@frederic-hemberger.de>
This commit is contained in:
parent
a12087b3dd
commit
f51d10388e
2 changed files with 0 additions and 95 deletions
|
@ -1,71 +0,0 @@
|
|||
class Coredns < Formula
|
||||
desc "DNS server that chains plugins"
|
||||
homepage "https://coredns.io"
|
||||
url "https://github.com/coredns/coredns/releases/download/v1.6.9/coredns_1.6.9_darwin_amd64.tgz"
|
||||
version "1.6.9"
|
||||
sha256 "d0b91c2423e459b6c03561d640c2c686b3168f45a9c510782c268dd549f4a84f"
|
||||
head "https://github.com/coredns/coredns.git"
|
||||
|
||||
def default_coredns_config; <<~EOS
|
||||
. {
|
||||
hosts {
|
||||
fallthrough
|
||||
}
|
||||
forward . https://8.8.8.8:53 https://8.8.4.4:53
|
||||
cache
|
||||
errors
|
||||
}
|
||||
EOS
|
||||
end
|
||||
|
||||
def install
|
||||
(buildpath/"Corefile.example").write default_coredns_config
|
||||
(etc/"coredns").mkpath
|
||||
etc.install "Corefile.example" => "coredns/Corefile"
|
||||
bin.install "coredns"
|
||||
end
|
||||
|
||||
def caveats; <<~EOS
|
||||
To configure coredns, take the default configuration at
|
||||
#{etc}/coredns/Corefile and edit to taste.
|
||||
|
||||
By default it is configured to proxy all dns requests
|
||||
through Google's DNS-over-HTTPS:
|
||||
(https://developers.google.com/speed/public-dns/docs/dns-over-https).
|
||||
EOS
|
||||
end
|
||||
|
||||
plist_options :startup => true
|
||||
|
||||
def plist; <<~EOS
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>#{plist_name}</string>
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>#{opt_bin}/coredns</string>
|
||||
<string>-conf</string>
|
||||
<string>#{etc}/coredns/Corefile</string>
|
||||
</array>
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
<key>KeepAlive</key>
|
||||
<true/>
|
||||
<key>StandardErrorPath</key>
|
||||
<string>#{var}/log/coredns.log</string>
|
||||
<key>StandardOutPath</key>
|
||||
<string>#{var}/log/coredns.log</string>
|
||||
<key>WorkingDirectory</key>
|
||||
<string>#{HOMEBREW_PREFIX}</string>
|
||||
</dict>
|
||||
</plist>
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "CoreDNS-#{version}", shell_output("#{bin}/coredns -version")
|
||||
end
|
||||
end
|
24
README.md
24
README.md
|
@ -2,30 +2,6 @@
|
|||
|
||||
Scripts, utilities, and examples for deploying CoreDNS.
|
||||
|
||||
## MacOS
|
||||
|
||||
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)`
|
||||
|
||||
To use CoreDNS as your default resolver (e.g. for your `Wi-Fi` interface)...
|
||||
|
||||
via CLI:
|
||||
- Run `networksetup -setdnsservers Wi-Fi 127.0.0.1`
|
||||
|
||||
or via GUI:
|
||||
- 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`
|
||||
|
||||
# Debian
|
||||
|
||||
|
|
Loading…
Reference in a new issue