2. Add a section called hosts where you define the address you want to use for yourcustom.host in the example and point it to the IP address you need 1.2.3.4 in the example below.
For example, your ConfigMap should look like this:
data:
Corefile: |
.:53 {
errors
health
ready
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
fallthrough in-addr.arpa ip6.arpa
}
prometheus :9153
forward . 8.8.8.8 8.8.4.4
cache 30
loop
reload
loadbalance
hosts {
1.2.3.4 yourcustom.host
fallthrough
}
}
3. Restart the core-DNS pod and wait for the new one to come up: