taskserv = COREDNS {
    version = "1.11.3"
    name = "coredns"
    #etc_corefile = "/etc/coredns/Corefile"
    hostname = "$hostname"
    nameservers = [
        NameServer {ns_ip = "$servers.0.$network_private_ip" },
        NameServer {ns_ip = "$servers.1.$network_private_ip" }
    ]
    domains_search = "$defaults"
    entries = [CoreDNSEntry {
            domain: "librecloud.online"
            #port: 53
            file: "/etc/coredns/db.librecloud.online"
            records: [
                CoreDNSRecord {
                    name: "$server.0"
                    ttl: 300
                    rectype: "A"
                    server_pos = 0 
                    source = "$hostname"
                    target_ip: "$network_private_ip"
                },
                CoreDNSRecord {
                    name: "$server.1"
                    ttl: 300
                    rectype: "A"
                    server_pos = 1
                    source = "$hostname"
                    target_ip: "$network_private_ip"
                },
                CoreDNSRecord {
                    name: "$server.2"
                    ttl: 300
                    rectype: "A"
                    server_pos = 2
                    source = "$hostname"
                    target_ip: "$network_private_ip"
                },
                CoreDNSRecord {
                    name: "$server.3"
                    ttl: 300
                    rectype: "A"
                    server_pos = 3
                    source = "$hostname"
                    target_ip: "$network_private_ip"
                },
                CoreDNSRecord {
                    name: "$server.4"
                    ttl: 300
                    rectype: "A"
                    server_pos = 4
                    source = "$hostname"
                    target_ip: "$network_private_ip"
                },
                CoreDNSRecord {
                    name: "$server.5"
                    ttl: 300
                    rectype: "A"
                    server_pos = 4
                    source = "$hostname"
                    target_ip: "$network_private_ip"
                },
            ]
            etcd_cluster_name = "sgoyol"
        },CoreDNSEntry { 
            domain: "."
            forward: {
                source: "."
                #forward_ip: "94.237.127.9" # defaulst PROVIDER primary_dns
            }
        },
    ]
    
}
