修改配置文件:/etc/sysconfig/network-scripts/ifcfg-eth0
vim /etc/sysconfig/network-scripts/ifcfg-eth0
在里面添加上dns解析的配置即可:
重新network:
service network restart
2022-01-25 00:16:18
修改配置文件:/etc/sysconfig/network-scripts/ifcfg-eth0
vim /etc/sysconfig/network-scripts/ifcfg-eth0
在里面添加上dns解析的配置即可:
重新network:
service network restart