Add an External DNS Service to a Kubernetes Cluster
· β 2 min read
1. Add DNS to the Host 1.1 CentOS The first method: manage DNS with /etc/resolv.conf
Disable NetworkManager If you do not disable NetworkManager, the DNS records you add directly to /etc/resolv.conf are lost after you restart the NetworkManager component.
1 2 3 4 vim /etc/NetworkManager/NetworkManager.conf [main] dns=none Add dns=none to the [main] section.