微拓扑

  • Home
  • Archives
  • Tags
  • Wall
微拓扑
Another bloody day.
  1. 首页
  2. IT
  3. 正文

简单解决Debian中 /etc/resolv.conf 重置问题

09/08/2013 1114点热度 6人点赞 0条评论

前阵子弄了一个VPS.ME的免费VPS, 但是这个VPS只带IPV6地址, 没有IPV4.

apt-get update

的时候发现, 无法解析.

[email protected]:~# cat /etc/resolv.conf
nameserver 2001:4860:4860::8888

没有添加ipv4的dns

添加了nameserver 8.8.8.8后就好了
但是在reboot以后, 又变成了这个样子

[email protected]:~# cat /etc/resolv.conf
nameserver 2001:4860:4860::8888

网上好多办法说是dhcp的问题, 还有的说设置interface能解决, 都试过了不行.

安装

[email protected]:~# apt-get install resolvconf

编辑添加nameserver到这里后, 重启就ok了

[email protected]:~# cat /etc/resolvconf/resolv.conf.d/original 
nameserver 8.8.8.8
nameserver 2001:4860:4860::8888
标签: Debian DNS nameserver resolv.conf
最后更新:28/08/2013

kyaky

这个人很懒,什么都没留下

点赞
下一篇 >

文章评论

取消回复

COPYRIGHT © 2021 vtp.me. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang