.\" Generated by Mmark Markdown Processor - mmark.miek.nl .TH "DRUNK" 7 "August 2026" "atomdns handlers" "atomdns authors" .SH "NAME" .PP \fIdrunk\fP \- test client behavior .SH "DESCRIPTION" .PP \fIdrunk\fP sits in between a handler that answers a query and the client, any response can be delayed, dropped or truncated. .SH "SYNTAX" .PP .RS .nf drunk { drop [/N] truncate [/M] delay [/L [DURATION]] } .fi .RE .IP \(bu 4 \fB\fCdrop\fR: drop every /\fBN\fP query, the default is one in four (/4). .IP \(bu 4 \fB\fCtruncate\fR: truncate every /\fBM\fP query, the default is /4. .IP \(bu 4 \fB\fCdelay\fR: delay every /\fBL\fP query for \fBDURATION\fP, the default for is /2 and the default for \fBDURATION\fP is 100ms. .SH "EXAMPLES" .PP Drop every 1 in 3 queries to \fB\fCexample.org\fR: .PP .RS .nf example.org { drunk { drop /3 } whoami } .fi .RE .PP Or even shorter if the defaults suit you. Note this only drops queries, it does not delay them. .PP .RS .nf example.org { drunk whoami } .fi .RE .PP Delay 1 in 3 queries for 50ms .PP .RS .nf example.org { drunk { delay /3 50ms } whoami } .fi .RE .PP Delay 1 in 3 and truncate 1 in 5. .PP .RS .nf example.org { drunk { delay /3 5ms truncate /5 } whoami } .fi .RE