Skip to content

Instantly share code, notes, and snippets.

@zhaoyongjie
Created June 12, 2014 06:09
Show Gist options
  • Select an option

  • Save zhaoyongjie/27f4e9887134c9412565 to your computer and use it in GitHub Desktop.

Select an option

Save zhaoyongjie/27f4e9887134c9412565 to your computer and use it in GitHub Desktop.
global {
# debug = on; # /var/pdnsd/pdnsd.debug
perm_cache=1024; # 1MB cache
cache_dir="/var/pdnsd";
run_as="nobody";
paranoid=on;
server_port = 53;
server_ip = any;
status_ctl = on;
query_method=tcp_only; # gfw don't pollute TCP query now
min_ttl=2h;
max_ttl=1w;
timeout=6;
# https://wiki.archlinux.org/index.php/Pdnsd#Performance_Settings_For_Home_Broadband_Users
neg_rrs_pol=on;
par_queries=1;
}
server {
label="114 & V2EX DNS";
ip=114.114.114.114,114.114.115.115;
uptest=none;
# root_server = on;
proxy_only=on;
purge_cache=off;
exclude=".google.com",".gstatic.com",".googleusercontent.com",".googlesource.com",".ggpht.com",".appspot.com",".googlecode.com",".googleapis.com",".gmail.com",".google-analytics.com",".keyhole.com",".chromium.org",".googlesyndication.com",".googlelabs.com",".g.co",".goo.gl",".panoramio.com",".android.com",".youtube.com",".ytimg.com",".blogspot.com",".blogger.com",".twitter.com",".twimg.com",".t.co",".facebook.com",".facebook.net",".fbcdn.net",".fb.me",".tfbnw.net",".flickr.com",".yimg.com",".bit.ly",".bitly.com",".t66y.com",".wp.com",".torproject.org",".igfw.net",".openvpn.net",".dropbox.com",".wikipedia.org",".sourceforge.net",".sf.net",".droplr.com",".pastebin.com",".vimeo.com";
# ".dynect.net",".edgecastcdn.net",".akamaihd.net"
}
server {
label="V2EX & Google DNS";
ip=199.91.73.222,8.8.8.8;
# root_server = on;
# uptest = ping;
uptest = none;
proxy_only=on;
purge_cache=off;
}
source {
owner=localhost;
# serve_aliases=on;
file="/etc/hosts";
}
rr {
name=localhost;
reverse=on;
a=127.0.0.1;
owner=localhost;
soa=localhost,root.localhost,42,86400,900,86400,86400;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment