2018-01-04 12:53:07 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								. \" generated with Ronn/v0.7.3  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								. \" http://github.com/rtomayko/ronn/tree/0.7.3  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
									
										
										
										
											2018-10-18 09:47:03 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								.TH  "COREDNS\-NSID"  "7"  "October 2018"  "CoreDNS"  "CoreDNS plugins" 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-04 12:53:07 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "NAME" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\fI nsid\fR  \-  adds an identifier of this server to each reply\.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "DESCRIPTION" 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-05 19:58:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								This plugin implements RFC 5001 \fI https://tools\. ietf\. org/html/rfc5001\fR  and adds an EDNS0 OPT resource record to replies that uniquely identify the server\.  This is useful in anycast setups to see which server was responsible for generating the reply and for debugging\. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.P 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								This plugin can only be used once per Server Block\. 
							 
						 
					
						
							
								
									
										
										
										
											2018-01-04 12:53:07 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "SYNTAX" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.nf 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								nsid [DATA]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.P 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\fB DATA\fR  is the string to use in the nsid record\.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.P 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								If \fB DATA\fR  is not given, the host\' s name is used\. 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "EXAMPLES" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Enable nsid:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  4 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.nf 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\& \.  { 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    whoami
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    nsid Use The Force
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  0 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.P 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								And now a client with NSID support will see an OPT record with the NSID option:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  4 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.nf 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								% dig +nsid @localhost a whoami\. example\. org
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								;; Got answer:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								;; \- >>HEADER<<\-  opcode: QUERY, status: NOERROR, id: 46880
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 3
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								\. \. \. \.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								; OPT PSEUDOSECTION:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								; EDNS: version: 0, flags:; udp: 4096
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								; NSID: 55 73 65 20 54 68 65 20 46 6f 72 63 65 ("Use The Force")
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								;; QUESTION SECTION:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								;whoami\. example\. org\.         IN  A
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.fi 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.IP  ""  0 
							 
						 
					
						
							
								
									
										
										
										
											2018-03-05 19:58:28 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								.  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								.SH  "ALSO SEE" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								RFC 5001 \fI https://tools\. ietf\. org/html/rfc5001\fR