1
We no longer use the deliver_all parameter; this parameter was originally
2
submitted by Jakob Blomer at CERN labs (yes, *that* CERN labs).
4
What this parameter did was change how Deadwood 2 handled blank DNS packets;
5
because of issues I had with our ISP's upstream servers in 2008, I tuned
6
Deadwood to discard empty packets. However, in some cases letting them
7
through as-is without caching speeds up resolution of names.
9
Deadwood 3's codebase has fine-tuneds the handling of these invalid DNS
10
packets; empty DNS packets are now treated like low-TTL "this hostname
11
is not here" packets (chase.com's buggy handling of AAAA packets) unless
12
the RCODE is "server fail" (in.com's broken DNS server), at which point
13
we act like as though we didn't get the packet.
15
--- deadwood-2.9.05/src/DwSocket.c 2010-08-20 00:54:13.000000000 -0700
16
+++ deadwood-2.9.06/src/DwSocket.c 2010-09-01 10:44:46.000000000 -0700
18
int32_t maradns_gid = 99;
20
dwd_dict *blacklist_dict = 0;
24
u_long dont_block = 0;
26
maradns_gid = get_key_n(DWM_N_maradns_gid,10,65535,99);
27
resurrections = get_key_n(DWM_N_resurrections,0,1,1);
28
num_retries = get_key_n(DWM_N_num_retries,0,8,2);
29
- deliver_all = get_key_n(DWM_N_deliver_all,0,1,1);
31
if((num_ports & (num_ports - 1)) != 0) {
32
dw_fatal("num_ports must be a power of 2");
33
--- deadwood-2.9.05/src/DwUdpSocket.c 2010-08-20 00:54:13.000000000 -0700
34
+++ deadwood-2.9.06/src/DwUdpSocket.c 2010-09-01 10:44:54.000000000 -0700
38
extern int num_retries;
39
-extern int deliver_all;
41
/* Other mararc parameters */
42
extern dwd_dict *blacklist_dict;
43
--- deadwood-2.9.06/doc/Deadwood.ej.orig 2010-09-01 10:45:54.000000000 -0700
44
+++ deadwood-2.9.06/doc/Deadwood.ej 2010-09-01 10:46:48.000000000 -0700
46
This is the directory the program will run from.
49
-Some upstream DNS servers violate the RFCs and send "name error"
50
-DNS packets without a SOA record in the NS section of the reply.
51
-Deadwood used to discard such packets; Deadwood now passes such
52
-packets on to the client without caching them.
54
-Should the old behavior of discarding these packets is desired,
55
-set this to 0 with "deliver_all=0" in the dwood3rc file.
57
-The default value for this is 1
58
+This affects behavior in Deadwood 2.3, but has no effect in Deadwood 3.
59
+This variable is only here so Deadwood 2 rc files can run in Deadwood 3.
62
This is the port Deadwood binds to and listens on for