ITMan Documents

This Weblog Just Created For Document Sysadmin Challenges

DNS Forward

Following Setting Able Us to Forward DNS to External DNS Server/Forwarder

CoreDNS Configuration

https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengconfiguringdnsserver.htm

Config File
apiVersion: v1
kind: ConfigMap
metadata:  
  name: coredns-custom  
  namespace: kube-system 
data:
  <customization-options>
Config File Example
apiVersion: v1
kind: ConfigMap
metadata:
  name: coredns-custom
  namespace: kube-system
data:
   forwarder: | # All custom server files must have a “.server” file extension.
    # Change example.com to the domain you wish to forward.
    . {
      # Change 1.1.1.1 to your customer DNS resolver.
       . 1.1.1.1
    }

Tested and Verified on Kubernetes Version v1.19.2

To Download YAML File
curl -sS https://itmconsult.ir/kubernetes/dns/forward.yaml
Last updated on 10 Nov 2020
Published on 10 Nov 2020