dnsmasq
-
Close system’s NetworkManager built-in dnsmasq, prepare to run stand-alone dnsmasq. 1
vi /etc/NetworkManger/NetworkManager.conf #dns=dnsmasq restart network-manager -
Install complete dnsmasq.
apt-get install dnsmasq -
Configure dnsmasq, some necessary options:
vi /etc/dnsmasq.conf # get killgfw.conf later domain-needed resolv-file=/etc/dnsmasq.d/killgfw.conf cache-size=10000 strict-order no-resolv no-poll -
Download killgfw.conf, you can modify as you like. 2 3
mkdir -pv /etc/dnsmasq.d wget https://smarthosts.googlecode.com/svn/trunk/dnsmasq.conf \ -O /etc/dnsmasq.d/killgfw.conf -
Start dnsmasq service. s
service dnsmasq start -
Disable pppoe’s dns function. d
open pppoe’s configure file
vi /etc/ppp/pppoe.confmodify DNS type
DNSTYPE=NOCHANGEand delete system’s resolv.conf
rm /etc/resolv.conf