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-30 13:56:52 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								.TH  "COREDNS\-LOADBALANCE"  "7"  "March 2019"  "CoreDNS"  "CoreDNS plugins" 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-04 12:53:07 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "NAME" 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-27 19:54:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								\fI loadbalance\fR  \-  randomize the order of A, AAAA and MX records\.  
						 
					
						
							
								
									
										
										
										
											2018-01-04 12:53:07 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "DESCRIPTION" 
							 
						 
					
						
							
								
									
										
										
										
											2018-08-27 19:54:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The \fI loadbalance\fR  will act as a round\- robin DNS loadbalancer by randomizing the order of A, AAAA, and MX records in the answer\. 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-06 11:27:40 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.P 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-04 12:53:07 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								See Wikipedia \fI https://en\. wikipedia\. org/wiki/Round\- robin_DNS\fR  about the pros and cons on this setup\.  It will take care to sort any CNAMEs before any address records, because some stub resolver implementations (like glibc) are particular about that\. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "SYNTAX" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.nf 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								loadbalance [POLICY]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  "\(bu"  4 
							 
						 
					
						
							
								
									
										
										
										
											2018-07-06 11:27:40 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								\fB POLICY\fR  is how to balance, the default, and only option, is "round_robin"\.  
						 
					
						
							
								
									
										
										
										
											2018-01-04 12:53:07 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  0 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "EXAMPLES" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Load balance replies coming back from Google Public DNS:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  4 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.nf 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\& \.  { 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    loadbalance round_robin
							 
						 
					
						
							
								
									
										
										
										
											2018-07-06 11:27:40 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    forward \.  8\. 8\. 8\. 8 8\. 8\. 4\. 4
							 
						 
					
						
							
								
									
										
										
										
											2018-01-04 12:53:07 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  0