打開附屬應用程式->終端機
1.sudo apt-get install dnsmasq
2.sudo gedit /etc/dnsmasq.conf
3.跳出一份文字檔後,找出#resolv-file=
並且換成resolv-file=/etc/resolv.dnsmasq.conf
最後存檔離開
4. sudo cp /etc/resolv.conf /etc/resolv.dnsmasq.conf
5. sudo gedit /etc/resolv.conf
6.跳出一份文字檔後,將所有nameserver xx.xx.xx.xx統統刪掉
並且貼上nameserver 127.0.0.1
存檔離開。
7.sudo gedit /etc/ppp/peers/provider
8.找出usepeerdns這行字,並且在前面加上#
9.sudo gedit /etc/dhcp3/dhclient.conf
10.跳出一份文字檔後,將#prepend domain-name-servers 127.0.0.1
這行文字前面的#給刪除掉。
No comments:
Post a Comment