summaryrefslogtreecommitdiff
path: root/package/pdnsd/files/pdnsd.conf
blob: 73690524a3a8b8687728530adf8112dbdb9f4098 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
global {
	perm_cache = 1024;
	cache_dir = "/var/cache/pdnsd";  # do not change this!
	run_as = "nobody";
	strict_setuid = on;
	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;
	min_ttl=15m;       # Retain cached entries at least 15 minutes.
	max_ttl=1w;        # One week.
	timeout=10;        # Global timeout option (10 seconds).
	proc_limit = 20;
}

# serve local host definitions
source {
	owner = "localhost";
	serve_aliases = off; # skip everything after the first host for an IP
	file = "/etc/hosts";
}

# for dns servers via dhcp
#server {
#	label = "dhcp";
#	file = "/var/resolv.conf";
#	exclude = ".lan";
#	policy = fqdn_only;
#	timeout = 4;
#	uptest = if;
#	interface = "eth0";
#	interval = 60;
#}