w********e 发帖数: 557 | 1 这两天DNS有问题,上不了mit和wenxuecity,就自己找了几个DNS加进resolv.conf。可
是一重启,后来加的就没了。有人知道为什么么?
我是ubuntu 8.10。 |
x****u 发帖数: 44466 | 2 用网络配置工具,不要裸改。
【在 w********e 的大作中提到】 : 这两天DNS有问题,上不了mit和wenxuecity,就自己找了几个DNS加进resolv.conf。可 : 是一重启,后来加的就没了。有人知道为什么么? : 我是ubuntu 8.10。
|
E*V 发帖数: 17544 | 3 dhcpcd changed it
or networking changed it
don't use dhcp and networking software!
【在 w********e 的大作中提到】 : 这两天DNS有问题,上不了mit和wenxuecity,就自己找了几个DNS加进resolv.conf。可 : 是一重启,后来加的就没了。有人知道为什么么? : 我是ubuntu 8.10。
|
j*a 发帖数: 14423 | 4 dpkg -l|grep dhc
贴来看看
debian的dhclient是会改resolve.conf的 除非你改配置
【在 w********e 的大作中提到】 : 这两天DNS有问题,上不了mit和wenxuecity,就自己找了几个DNS加进resolv.conf。可 : 是一重启,后来加的就没了。有人知道为什么么? : 我是ubuntu 8.10。
|
z**r 发帖数: 17771 | 5 that's how it's supposed to work using dhcp.
you need to use static network configuration, edit /etc/network/interfaces,
change "iface eth0 inet dhcp" to "iface eth0 inet static", then add
corresponding information like IP address, net mask, gateway, ....
After this is done, then it's time to modify /etc/resolv.conf to add your
own DNS infor
【在 w********e 的大作中提到】 : 这两天DNS有问题,上不了mit和wenxuecity,就自己找了几个DNS加进resolv.conf。可 : 是一重启,后来加的就没了。有人知道为什么么? : 我是ubuntu 8.10。
|
w********e 发帖数: 557 | 6
ezl[10:16:46]/etc$ dpkg -l|grep dhc
ii dhcp3-client 3.1.1-1ubuntu2
DHCP client
ii dhcp3-common 3.1.1-1ubuntu2
common files used by all the dhcp3* packages
【在 j*a 的大作中提到】 : dpkg -l|grep dhc : 贴来看看 : debian的dhclient是会改resolve.conf的 除非你改配置
|
w********e 发帖数: 557 | 7
,
ezl[10:16:54]/etc$ more /etc/network/interfaces
auto lo
iface lo inet loopback
Doesn't have what you said. Yeah, I'm not too used to dhcp on linux since
my company always uses static.
【在 z**r 的大作中提到】 : that's how it's supposed to work using dhcp. : you need to use static network configuration, edit /etc/network/interfaces, : change "iface eth0 inet dhcp" to "iface eth0 inet static", then add : corresponding information like IP address, net mask, gateway, .... : After this is done, then it's time to modify /etc/resolv.conf to add your : own DNS infor
|
E*V 发帖数: 17544 | 8 ft,他说的意思是要自己修改那个文件,和我上一个帖子说的一样,
只是我懒,写得少,
你的这个设置技术dhcpcd搞的。
【在 w********e 的大作中提到】 : : , : ezl[10:16:54]/etc$ more /etc/network/interfaces : auto lo : iface lo inet loopback : Doesn't have what you said. Yeah, I'm not too used to dhcp on linux since : my company always uses static.
|
p**i 发帖数: 688 | 9 查查 chkconfig --list | grep resolvconf
如果不需要它, 可以把它off了
看看cat /etc/resolvconf/resolv.conf.d/*都有啥
最后再没辙就man resolvconf
interfaces
your
【在 w********e 的大作中提到】 : : , : ezl[10:16:54]/etc$ more /etc/network/interfaces : auto lo : iface lo inet loopback : Doesn't have what you said. Yeah, I'm not too used to dhcp on linux since : my company always uses static.
|
p*****s 发帖数: 344 | 10 可以把你改过的文件存成别的名字,
在启动脚本最后部分覆盖resolve.conf |
A**********e 发帖数: 3102 | 11 这个不是解决问题的办法啊,老兄。
【在 p*****s 的大作中提到】 : 可以把你改过的文件存成别的名字, : 在启动脚本最后部分覆盖resolve.conf
|
Z**0 发帖数: 1119 | 12 我手头用的是老版本的ubuntu。
新版本用的应该还是dhclient这个组件。
修改:
/etc/dhcp3/dhclient.conf
add:
prepend domain-name-servers "your dns IP";
remove "domain-name-servers" from the "request" line.
It might work. |
m******t 发帖数: 2416 | 13
NetworkManager does that. Unless you are using wireless or
some complicated networking setup, Just disable it.
【在 w********e 的大作中提到】 : 这两天DNS有问题,上不了mit和wenxuecity,就自己找了几个DNS加进resolv.conf。可 : 是一重启,后来加的就没了。有人知道为什么么? : 我是ubuntu 8.10。
|