Debian Codegraph @

cmd/atomdns/man/atomdns-drunk.7

raw
1 .\" Generated by Mmark Markdown Processor - mmark.miek.nl
2 .TH "DRUNK" 7 "August 2026" "atomdns handlers" "atomdns authors"
3
4 .SH "NAME"
5 .PP
6 \fIdrunk\fP \- test client behavior
7
8 .SH "DESCRIPTION"
9 .PP
10 \fIdrunk\fP sits in between a handler that answers a query and the client, any response can be delayed, dropped or truncated.
11
12 .SH "SYNTAX"
13 .PP
14 .RS
15
16 .nf
17 drunk {
18 drop [/N]
19 truncate [/M]
20 delay [/L [DURATION]]
21 }
22
23 .fi
24 .RE
25
26 .IP \(bu 4
27 \fB\fCdrop\fR: drop every /\fBN\fP query, the default is one in four (/4).
28 .IP \(bu 4
29 \fB\fCtruncate\fR: truncate every /\fBM\fP query, the default is /4.
30 .IP \(bu 4
31 \fB\fCdelay\fR: delay every /\fBL\fP query for \fBDURATION\fP, the default for is /2 and the default for \fBDURATION\fP is 100ms.
32
33
34 .SH "EXAMPLES"
35 .PP
36 Drop every 1 in 3 queries to \fB\fCexample.org\fR:
37
38 .PP
39 .RS
40
41 .nf
42 example.org {
43 drunk {
44 drop /3
45 }
46 whoami
47 }
48
49 .fi
50 .RE
51
52 .PP
53 Or even shorter if the defaults suit you. Note this only drops queries, it does not delay them.
54
55 .PP
56 .RS
57
58 .nf
59 example.org {
60 drunk
61 whoami
62 }
63
64 .fi
65 .RE
66
67 .PP
68 Delay 1 in 3 queries for 50ms
69
70 .PP
71 .RS
72
73 .nf
74 example.org {
75 drunk {
76 delay /3 50ms
77 }
78 whoami
79 }
80
81 .fi
82 .RE
83
84 .PP
85 Delay 1 in 3 and truncate 1 in 5.
86
87 .PP
88 .RS
89
90 .nf
91 example.org {
92 drunk {
93 delay /3 5ms
94 truncate /5
95 }
96 whoami
97 }
98
99 .fi
100 .RE