其他分享
首页 > 其他分享> > 本地DNS设置

本地DNS设置

作者:互联网

设置本地DNS缓存

修改/etc/hosts文件

//立即生效
[root@YX-node01 group_vars]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.153.176 YX-node01
192.168.153.174 YX-node02
192.168.153.172 YX-node03

标签:node01,本地,192.168,YX,DNS,设置,localhost6,localhost
来源: https://www.cnblogs.com/yingxin20000303/p/16657781.html