Assume that you use Ubuntu.
Download & Install pdnsd:
At the setup configuration step, choose manual. Then modify the config file: /etc/pdnsd.conf
At the global section, change server_ip, add server_port, increase or decrease the perm_cache, change min_ttl & max_ttl at your own need, just like:
|
global { perm_cache=4096; //cache size,KB cache_dir="/var/cache/pdnsd"; //cache file position run_as="pdnsd"; //just leave default server_ip = eth0; // Use eth0 here if you want to allow other // machines on your network to query pdnsd. server_port = 1212; //bind port, just do not use port 53 status_ctl = on; paranoid=on; // query_method=tcp_udp; // pdnsd must be compiled with tcp // query support for this to work. min_ttl=1d; // Retain cached entries at least 1 day. max_ttl=1w; // One week. neg_ttl=120s; timeout=5; // Global timeout option (10 seconds). } |