-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(kuma-dp): put Corefile into embedded FS (#8117)
Signed-off-by: Mike Beaumont <mjboamail@gmail.com>
- Loading branch information
1 parent
b478866
commit 218a57a
Showing
4 changed files
with
26 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.:{{ .CoreDNSPort }} { | ||
forward . 127.0.0.1:{{ .EnvoyDNSPort }} | ||
# We want all requests to be sent to the Envoy DNS Filter, unsuccessful responses should be forwarded to the original DNS server. | ||
# For example: requests other than A, AAAA and SRV will return NOTIMP when hitting the envoy filter and should be sent to the original DNS server. | ||
# Codes from: https://github.com/miekg/dns/blob/master/msg.go#L138 | ||
alternate NOTIMP,FORMERR,NXDOMAIN,SERVFAIL,REFUSED . /etc/resolv.conf | ||
prometheus localhost:{{ .PrometheusPort }} | ||
errors | ||
} | ||
|
||
.:{{ .CoreDNSEmptyPort }} { | ||
template ANY ANY . { | ||
rcode NXDOMAIN | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters