请问/etc/resolv.conf 和/etc/network/interface 中的dns-nameservers

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
yjfuk
帖子: 5
注册时间: 2006-09-08 15:29

请问/etc/resolv.conf 和/etc/network/interface 中的dns-nameservers

#1

帖子 yjfuk » 2006-09-08 17:10

请问/etc/resolv.conf 和/etc/network/interface 中的dns-nameservers是什么关系?
在/etc/network/interface 中设置了dns-nameservers,还要在resolv.conf中设置吗?
这两者是怎样影响的?
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#2

帖子 eexpress » 2006-09-08 17:50

/etc/resolv.conf的是自动获取dns的选项打开时,系统产生的。
● 鸣学
yjfuk
帖子: 5
注册时间: 2006-09-08 15:29

#3

帖子 yjfuk » 2006-09-08 22:09

怎样打开自动获取dns的选项
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#4

帖子 eexpress » 2006-09-08 22:20

我只知道pppoeconf配置的时候可以选择。

内容在/etc/ppp/peers/dsl-provider
# Try to get the name server addresses from the ISP.
usepeerdns

如果是其他情况的,就不清楚了。
● 鸣学
回复