Created
January 11, 2012 10:41
-
-
Save SAPikachu/1594109 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Debian specific configuration to work as a recursive resolver */ | |
global { | |
perm_cache = 2048; | |
cache_dir = "/var/cache/pdnsd"; | |
run_as = "pdnsd"; | |
server_ip = any; // Use eth0 here if you want to allow other | |
// machines on your network to query pdnsd. | |
status_ctl = on; | |
paranoid = off; | |
min_ttl = 15m; // Retain cached entries at least 15 minutes. | |
max_ttl = 1w; // One week. | |
timeout = 10; // Global timeout option (10 seconds). | |
query_method=tcp_udp; | |
debug = on; | |
// delegation_only = "com","net"; | |
} | |
server { | |
label = "recurse"; | |
root_server = on; | |
randomize_servers = on; | |
ip = 198.41.0.4 | |
, 192.228.79.201 | |
, 192.33.4.12 | |
, 128.8.10.90 | |
, 192.203.230.10 | |
, 192.5.5.241 | |
, 192.112.36.4 | |
, 128.63.2.53 | |
/* | |
, 192.36.148.17 | |
, 192.58.128.30 | |
, 193.0.14.129 | |
, 198.32.64.12 | |
, 202.12.27.33 | |
*/ | |
; | |
timeout = 2; | |
uptest = query; | |
interval = 30m; // Test every half hour. | |
ping_timeout = 300; // 30 seconds. | |
purge_cache = off; | |
exclude = .localdomain, ".cn", ".taobao.com"; | |
policy = included; | |
preset = off; | |
} | |
server { | |
label = "china telecom"; | |
root_server = no; | |
randomize_servers = on; | |
ip = 202.96.128.68, 202.96.128.143; | |
timeout = 1; | |
uptest = exec; | |
uptest_cmd = "exit 0"; | |
interval = 30m; // Test every half hour. | |
ping_timeout = 300; // 30 seconds. | |
purge_cache = off; | |
exclude = .localdomain; | |
policy = included; | |
preset = off; | |
} | |
/* | |
server { | |
label = "root-server"; | |
root_server = on; | |
randomize_servers = on; | |
ip = 198.41.0.4 | |
, 192.228.79.201 | |
, 192.33.4.12 | |
, 128.8.10.90 | |
, 192.203.230.10 | |
, 192.5.5.241 | |
, 192.112.36.4 | |
, 128.63.2.53 | |
; | |
timeout = 5; | |
uptest = query; | |
interval = 30m; // Test every half hour. | |
ping_timeout = 300; // 30 seconds. | |
purge_cache = off; | |
exclude = .localdomain; | |
policy = included; | |
preset = off; | |
} | |
*/ | |
source { | |
owner = localhost; | |
file = "/etc/hosts"; | |
} | |
rr { | |
name = localhost; | |
reverse = on; | |
a = 127.0.0.1; | |
owner = localhost; | |
soa = localhost,root.localhost,42,86400,900,86400,86400; | |
} | |
/* vim:set ft=c: */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment