分页: 1 / 1

[分享]ADSL上网禁止ppp自动清除并修改DNS

发表于 : 2006-08-08 23:12
wanson
文件位置:/etc/ppp/peers/dsl-provider

原始内容:
# Try to get the name server addresses from the ISP.
usepeerdns

修改为:
# Try to get the name server addresses from the ISP.
# usepeerdns

这样可以禁止ppp在建立ADSL连接后,自动清除/etc/resolv.conf中的namservers,并将从ISP处得到的DNS更新到该文件中。

--------------------------------------------------------
注:看到论坛中对此问题通过sysv-rc-conf的解决方法,试了一下,没起作用,我用的是6.06。查了一下ppp的shell文件和配置文件,照此修改后,经测试有效,在此分享。