1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| yum -y install dnsmasq
vi /etc/dnsmasq.conf
vi /etc/hosts 注意先配置一条hostname的记录
systemctl start dnsmasq systemctl enable dnsmasq
vi /etc/sysconfig/network-scripts/ifcfg-ens192 DNS1=10.10.51.77
systemctl restart network
ping registry.yourcompany.com
|