Assume that you use Ubuntu.
Download & Install pdnsd:
| 1 | apt-get 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:
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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). } | 

