歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> ubuntu系統下ADSL上網禁止ppp自動清除並修改DNS

ubuntu系統下ADSL上網禁止ppp自動清除並修改DNS

日期:2017/2/28 17:43:48   编辑:Linux教程
文件位置:/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文件和配置文件,照此修改後,經測試有效,在此分享。
Copyright © Linux教程網 All Rights Reserved