首页 > 系统 > Linux > 正文

ubuntu系统下ADSL上网禁止ppp自动清除并修改DNS

2024-08-28 00:22:01
字体:
来源:转载
供稿:网友
文件位置:/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文件和配置文件,照此修改后,经测试有效,在此分享。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表