我最近在本机 Unix 上面配置了 ChinaDNS + dnsmasq + unbound, 因为没什么编程经验, 是看得懂但不会编那种, 到处搜索教程以后经过几天总算搞定了, 不过不知道自己配置得对不对, 因为有时候好像速度还没有直接设置 114 来得快. 下面放出两份 conf 文件的内容给大家看看, 感谢大家的帮助 =)
dnsmasq 的:
port=5353
resolv-file=/usr/local/etc/resolv.dnsmasq.conf
strict-order
no-resolv
no-poll
server=127.0.0.1#53
listen-address=127.0.0.1
cache-size=4096
conf-dir=/etc/dnsmasq.d
unbound.conf 的:
server:
verbosity: 1
interface: 127.0.0.1
port: 5454
tcp-upstream: yes
access-control: 127.0.0.0/8 allow
username: "Unix20140623"
auto-trust-anchor-file: "/usr/local/etc/unbound/root.key"
python:
remote-control:
forward-zone:
name: "."
forward-addr: 8.8.4.4
forward-addr: 8.8.8.8
forward-addr: 208.67.222.222@5353
forward-addr: 208.67.220.220@5353
forward-first: no