ubuntu设置静态ip以后忘记设置dns,ping的时候报错:Name or service not known
添加dns即可
vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
ubuntu设置静态ip以后忘记设置dns,ping的时候报错:Name or service not known
添加dns即可
vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4