如何恢复/重新创建/resolv conf文件

分享于 

1分钟阅读

ubuntu

  繁體

no file named resolv.conf in /etc


你可以重新安装resolvconf以恢复默认配置:


sudo apt-get install --reinstall resolvconf



另一个想法是删除"resolvconf",然后安装:


sudo apt-get remove --purge resolvconf && sudo apt-get install resolvconf




如果resolvconf -u显示/etc/resolv.conf,不是指向/run/resolvconf/resolv.conf的符号链接,那么只需备份resolv.conf,并生成符号链接:


$ cd /etc


$ sudo ln -s /run/resolvconf/resolv.conf





文件  files  REST