|
|
发表于 2009-2-20 10:05:55
|
显示全部楼层
Post by Avast;1950032
如果无线使用dhcpcd
/etc/resolv.conf 总是自动被修改成 nameserver 192.168.0.1
而使用有线的时候需又要手工指定nameserver 为其他的
这种情况应如何解决?
dhcpcd 可以加参数使它不修改 /etc/resolv.conf 。
具体可以查看 man dhcpcd。
-C, --nohook script
Don't run this hook script. Matches full name, or prefixed with 2 numbers optionally ending with .sh.
So to stop dhcpcd from touching your DNS or MTU settings you would do:-
dhcpcd -C resolv.conf -C mtu eth0 |
|