2018-01-04 12:53:07 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								. \" generated with Ronn/v0.7.3  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								. \" http://github.com/rtomayko/ronn/tree/0.7.3  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
									
										
										
										
											2019-03-03 09:35:36 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								.TH  "COREDNS\-ERRATIC"  "7"  "March 2019"  "CoreDNS"  "CoreDNS plugins" 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-04 12:53:07 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "NAME" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\fI erratic\fR  \-  a plugin useful for testing client behavior\.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "DESCRIPTION" 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-27 19:54:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								\fI erratic\fR  returns a static response to all queries, but the responses can be delayed, dropped or truncated\.  The \fI erratic\fR  plugin will respond to every A or AAAA query\.  For any other type it will return a SERVFAIL response\.  The reply for A will return 192\. 0\. 2\. 53 (see RFC 5737 \fI https://tools\. ietf\. org/html/rfc5737\fR , for AAAA it returns 2001:DB8::53 (see RFC 3849 \fI https://tools\. ietf\. org/html/rfc3849\fR ) and for an AXFR request it will respond with a small zone transfer\.  
						 
					
						
							
								
									
										
										
										
											2018-01-04 12:53:07 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.P 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\fI erratic\fR  can also be used in conjunction with the \fI autopath\fR  plugin\.  This is mostly to aid in testing\.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "SYNTAX" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.nf 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								erratic {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    drop [AMOUNT]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    truncate [AMOUNT]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    delay [AMOUNT [DURATION]]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  "\(bu"  4 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\fB drop\fR : drop 1 per \fB AMOUNT\fR  of queries, the default is 2\.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  "\(bu"  4 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\fB truncate\fR : truncate 1 per \fB AMOUNT\fR  of queries, the default is 2\.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  "\(bu"  4 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\fB delay\fR : delay 1 per \fB AMOUNT\fR  of queries for \fB DURATION\fR , the default for \fB AMOUNT\fR  is 2 and the default for \fB DURATION\fR  is 100ms\.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  0 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
									
										
										
										
											2018-08-27 19:54:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								.P 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								In case of a zone transfer and truncate the final SOA record \fI isn\' t\fR  added to the response\. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
									
										
										
										
											2018-01-04 12:53:07 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								.SH  "HEALTH" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								This plugin implements dynamic health checking\.  For every dropped query it turns unhealthy\. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "EXAMPLES" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.nf 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\& \.  { 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    erratic {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        drop 3
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.P 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Or even shorter if the defaults suits you\.  Note this only drops queries, it does not delay them\. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  4 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.nf 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\& \.  { 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    erratic
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  0 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.P 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Delay 1 in 3 queries for 50ms
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  4 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.nf 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\& \.  { 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    erratic {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        delay 3 50ms
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  0 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.P 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Delay 1 in 3 and truncate 1 in 5\. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  4 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.nf 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\& \.  { 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    erratic {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        delay 3 5ms
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        truncate 5
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  0 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.P 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Drop every second query\. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  4 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.nf 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\& \.  { 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    erratic {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        drop 2
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								        truncate 2
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  0 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-12 10:13:56 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "ALSO SEE" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RFC 3849 \fI https://tools\. ietf\. org/html/rfc3849\fR  and RFC 5737 \fI https://tools\. ietf\. org/html/rfc5737\fR \.