Skip to content

Instantly share code, notes, and snippets.

@micromaomao
Last active August 29, 2015 14:16
Show Gist options
  • Save micromaomao/70969b25df562c78f67e to your computer and use it in GitHub Desktop.
Save micromaomao/70969b25df562c78f67e to your computer and use it in GitHub Desktop.
pdnsd as a proxy (tcp) (use root dns) (break GFW)
global {
perm_cache=4096;
run_ipv4=off;
cache_dir=/var/cache/pdnsd;
server_ip = ::1;
server_port = 53;
query_method=tcp_only;
min_ttl=10m;
max_ttl=1w;
timeout=10;
udpbufsize=1024;
}
server {
label= "dns";
ip = 2001:7fe::53, 2001:503:c27::2:30, 2001:7fd::1;
timeout=4s;
uptest=ping;
purge_cache=off;
}
source {
ttl=5;
owner="localhost.";
serve_aliases=on;
file="/etc/hosts";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment