1.DNS解析错误
[root@K8S7 named]# nslookup K8S1.k8s.com
;; Got SERVFAIL reply from 192.168.1.1, trying next server
2.原因
DNS相关配置丢失。
vi /etc/resolv.conf
# Generated by NetworkManager
nameserver fe80::1%ens160
nameserver 192.168.1.18 --添加
nameserver 192.168.1.19 --添加
search k8s.com --添加
options rotate --添加
options timeout:2 --添加
options attempts:1 --添加
3.重新解析
[root@K8S8 ~]# nslookup K8S1.k8s.com
Server: 192.168.1.18
Address: 192.168.1.18#53
Name: K8S1.k8s.com
Address: 192.168.1.12