ubuntu配置dns,解决ping不通baidu.com

1、执行“vim /etc/resolv.conf”,在这个文件里里加一句“nameserver 192.168.1.1”

2、/etc/init.d/restorecond  restart

3、/etc/init.d/networking  restart

posted @ 2020-07-07 19:53  94那抹微笑  阅读(2513)  评论(0)    收藏  举报