【Linux】添加DNS
1.添加DNS
输入命令:
vi /etc/resolv.conf
添加一行:nameserver 10.41.132.9
2.查看DNS
nslookup 127.0.0.1 | grep Server
显示结果:Server: 192.168.xxx.xxx
1.添加DNS
输入命令:
vi /etc/resolv.conf
添加一行:nameserver 10.41.132.9
2.查看DNS
nslookup 127.0.0.1 | grep Server
显示结果:Server: 192.168.xxx.xxx