The DNS server should be corrected so that name resolution for the Active Directory server(s) is functioning properly.
Workaround:
- Edit configmap of node-local-dns to add the server:
kubectl edit cm node-local-dns --namespace=kube-system
After modification, your configmap looks similar to:
corp.local:53 { <<<<<<<<<<<<<<<<<<<<< active directory domain name
errors
cache 30
reload
loop
bind 169.254.169.10
forward . <your private nameserver IP> {
force_tcp
}
prometheus :9256
}
.:53 {
errors
cache 30
reload
loop
bind 169.254.169.10
forward . /etc/resolv.conf {
force_tcp
}
prometheus :9256
}
Note: You should only modify "forward" line for the domain in question.
- Stop coredns pod to make sure the changes in configmap take effect.
kubectl get pods --namespace=kube-system -l k8s-app=kube-dns
kubectl delete pods coredns-fb8b8dccf-XXXXX coredns-fb8b8dccf-YYYYY --namespace=kube-system
Note: Then the new DNS server will work for your private domain names.