Contoh pdnsd.conf yang Aku Pake ;)

pdnsd adalah DNS cache server yg cukup lightweight, dan cukup bisa diandelin.
Bisa dibilang … aku selalu masang pdnsd + djbdns … karena masing2 punya kelebihan dan kekurangan yg bisa saling menutupi.

Berikut config yg aku pake utk pdnsd.conf *sapa tau ada yg butuh*

global {
perm_cache=40960;
cache_dir="/var/cache/pdnsd";
pid_file = /var/run/pdnsd.pid;
run_as="root";
server_ip = 127.0.0.1; # Use eth0 here if you want to allow other
# machines on your network to query pdnsd.
status_ctl = on;
# paranoid=on; # This option reduces the chance of cache poisoning
# but may make pdnsd less efficient, unfortunately.
query_method=udp_tcp;
#daemon=on;
min_ttl=15m; # Retain cached entries at least 15 minutes.
max_ttl=1w; # One week.
timeout=10; # Global timeout option (10 seconds).
}

server {
label = "opendns";
randomize_servers = on;
ip = 10.1.1.1, 202.73.99.8, 61.247.0.8, 208.67.222.222, 208.67.220.220, 202.154.1.2, 202.138.224.2;
timeout = 1;
uptest = ping; # Test availability using ICMP echo requests.
ping_timeout = 100; # ping test will time out after 10 seconds.
interval = 15m; # Test every 15 minutes.
preset = off;
}

server {
label = "root-servers";
root_server = on;
randomize_servers = on; # Give every root server an equal chance
# of being queried.
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 = 5;
uptest = query; # Test availability using empty DNS queries.
interval = 30m; # Test every half hour.
ping_timeout = 300; # Test should time out after 30 seconds.
purge_cache = off;
exclude = .localdomain;
policy = included;
preset = off;
}

IP 10.1.1.1 ini adalah IP dari DNS cache server yang dilayani oleh dnscache dari DJBDNS ;))
Jadinya saling mendukung …😀

One Comment Add yours

  1. Darmanto says:

    Siip bos, bantu banget buat aku..

    Thank ya..ditunggu tulisan2 berikutnya

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s