| 
									
										
										
										
											2016-03-24 17:58:31 +00:00
										 |  |  | # chaos
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-01-04 12:53:07 +00:00
										 |  |  | ## Name
 | 
					
						
							| 
									
										
										
										
											2017-07-24 08:24:53 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-01-04 12:53:07 +00:00
										 |  |  | *chaos* - allows for responding to TXT queries in the CH class. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Description
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | This is useful for retrieving version or author information from the server by querying a TXT record | 
					
						
							| 
									
										
										
										
											2019-08-21 16:08:55 -04:00
										 |  |  | for a special domain name in the CH class. | 
					
						
							| 
									
										
										
										
											2016-03-24 17:58:31 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## Syntax
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ~~~ | 
					
						
							| 
									
										
										
										
											2016-10-10 20:13:22 +01:00
										 |  |  | chaos [VERSION] [AUTHORS...] | 
					
						
							| 
									
										
										
										
											2016-03-24 17:58:31 +00:00
										 |  |  | ~~~ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-30 15:54:16 +00:00
										 |  |  | * **VERSION** is the version to return. Defaults to `CoreDNS-<version>`, if not set. | 
					
						
							| 
									
										
										
										
											2019-03-31 19:01:11 +01:00
										 |  |  | * **AUTHORS** is what authors to return. This defaults to all GitHub handles in the OWNERS files. | 
					
						
							| 
									
										
										
										
											2016-03-24 17:58:31 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-14 09:36:06 +01:00
										 |  |  | Note that you have to make sure that this plugin will get actual queries for the | 
					
						
							| 
									
										
										
										
											2016-08-08 19:18:55 -07:00
										 |  |  | following zones: `version.bind`, `version.server`, `authors.bind`, `hostname.bind` and | 
					
						
							|  |  |  | `id.server`. | 
					
						
							| 
									
										
										
										
											2016-04-04 15:45:17 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-24 17:58:31 +00:00
										 |  |  | ## Examples
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-09-10 21:01:49 +01:00
										 |  |  | Specify all the zones in full. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ~~~ corefile | 
					
						
							|  |  |  | version.bind version.server authors.bind hostname.bind id.server { | 
					
						
							|  |  |  |     chaos CoreDNS-001 info@coredns.io | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | ~~~ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Or just default to `.`: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ~~~ corefile | 
					
						
							|  |  |  | .  { | 
					
						
							|  |  |  |     chaos CoreDNS-001 info@coredns.io | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2016-03-24 17:58:31 +00:00
										 |  |  | ~~~ | 
					
						
							| 
									
										
										
										
											2017-09-10 21:01:49 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | And test with `dig`: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ~~~ txt | 
					
						
							|  |  |  | % dig @localhost CH TXT version.bind | 
					
						
							|  |  |  | ... | 
					
						
							|  |  |  | ;; ANSWER SECTION: | 
					
						
							|  |  |  | version.bind.		0	CH	TXT	"CoreDNS-001" | 
					
						
							|  |  |  | ... | 
					
						
							| 
									
										
										
										
											2016-03-24 17:58:31 +00:00
										 |  |  | ~~~ |