Code: Select all
[root@k8s-lg-3 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
k8s-lg-mst 10.10.1.30
k8s-lg-1 10.10.1.31
k8s-lg-2 10.10.1.32
k8s-lg-3 10.10.1.33
Code: Select all
[root@k8s-lg-3 ~]# cat /etc/nsswitch.conf | grep hosts:
#hosts: db files nisplus nis dns
hosts: files dns myhostname
Code: Select all
[root@k8s-lg-3 ~]# ping k8s-lg-2
ping: k8s-lg-2: Name or service not known
What am I doing wrong?!?!?