coredns 配置文件常用备忘

  Corefile: |
    vimll.com {
       file /etc/coredns/vimll.com
       reload
    }
    .:53 {
        errors
        health
        hosts {
           175.45.42.209 ocsp.int-x3.letsencrypt.org
           fallthrough
        }
        kubernetes cluster.local in-addr.arpa ip6.arpa {
           pods insecure
           fallthrough in-addr.arpa ip6.arpa
        }
        prometheus :9153
        forward . 8.8.8.8 223.5.5.5 223.6.6.6
        cache 30
        loop
        reload
        loadbalance
        ready
    }
  Corefile-backup: |
    vimll.com {
       file /etc/coredns/vimll.com
       reload
    }
    .:53 {
        errors
        health
        hosts {
           #101.37.188.46 wxdiiing.xiangbababus.com
           #192.168.9.99 load.dingdatech.com
           fallthrough
        }
        kubernetes cluster.local in-addr.arpa ip6.arpa {
           pods insecure
           upstream
           fallthrough in-addr.arpa ip6.arpa
        }
        prometheus :9153
        forward . 8.8.8.8 223.5.5.5 223.6.6.6
        cache 30
        loop
        reload
        loadbalance
    }
  vimll.com: |
    $ORIGIN vimll.com.
    @   3600 IN SOA sns.dns.icann.org. noc.dns.icann.org. (
                                2017042745 ; serial
                                7200       ; refresh (2 hours)
                                3600       ; retry (1 hour)
                                1209600    ; expire (2 weeks)
                                3600       ; minimum (1 hour)
                                )

        3600 IN NS a.iana-servers.net.
        3600 IN NS b.iana-servers.net.

    docker  IN A     192.168.9.8
    home    IN A     192.168.9.8
    d       IN A     192.168.9.99
    c       IN A     192.168.9.99
    o       IN A     192.168.9.99
    www     IN A     47.91.222.29
    hi      IN A     47.91.222.29
    @       IN A     47.91.222.29
    *       IN A     192.168.9.99



  Corefile: |
    .:53 {
        errors
        health
        hosts {
           10.111.129.173 auth.dingdatech.com
           fallthrough
        }

        kubernetes cluster.local in-addr.arpa ip6.arpa {
            pods insecure
            fallthrough in-addr.arpa ip6.arpa
        }
        prometheus :9153
        forward . /etc/resolv.conf
        cache 30
        loop
        reload
        loadbalance
        ready
    }