Delegating a Certain Domain to Another DNS in Kubernetes

Assume the DNS server is at 192.168.1.1 and the domain to forward is internal.yuru.site. Execute

kubectl edit configmap coredns -n kube-system

Insert the following line before forward . /etc/resolv.conf:

forward internal.yuru.site 192.168.1.1

Comments