Skip to content

Commit 358301e

Browse files
Merge pull request #279114 from sf-msft/issue-109609
Add match end of regex to custom CoreDNS
2 parents 2307787 + 6f5768e commit 358301e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/aks/coredns-custom.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ You can customize CoreDNS with AKS to perform on-the-fly DNS name rewrites.
4949
log
5050
errors
5151
rewrite stop {
52-
name regex (.*)\.<domain to be rewritten>.com {1}.default.svc.cluster.local
52+
name regex (.*)\.<domain to be rewritten>\.com {1}.default.svc.cluster.local
5353
answer name (.*)\.default\.svc\.cluster\.local {1}.<domain to be rewritten>.com
5454
}
5555
forward . /etc/resolv.conf # you can redirect this to a specific DNS server such as 10.0.0.10, but that server must be able to resolve the rewritten domain name

0 commit comments

Comments
 (0)