【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

posted @ 2018-10-15 19:14  RedGuardian  阅读(849)  评论(0编辑  收藏  举报