分类: 系统运维
2008-03-04 17:28:15
sudo apt-get install dnsmasq |
listen-address=127.0.0.1 找到下面这一项 #resolv-file= 用下面的一条语句替换 resolv-file=/etc/resolv.dnsmasq.conf |
# 找到下面的内容,并进行修改 prepend domain-name-servers 127.0.0.1; # 把这一行前面的注释去掉 request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name, netbios-name-servers, netbios-scope; |
nameserver 127.0.0.1 |
nameserver 127.0.0.1
nameserver 202.102.227.68 nameserver 202.102.224.68 search lan 然后编辑dsl-provider |
sudo /etc/init.d/dnsmasq restart |
dig google.cn |