文件位置:/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文件和配置文件,照此修改後,經測試有效,在此分享。