mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-02 10:13:14 -05:00 
			
		
		
		
	
		
			
	
	
		
			41 lines
		
	
	
		
			703 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
		
		
			
		
	
	
			41 lines
		
	
	
		
			703 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| 
								 | 
							
								# file
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								`file` enabled reading zone data from a RFC-1035 styled file.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								The etcd middleware makes extensive use of the proxy middleware to forward and query
							 | 
						||
| 
								 | 
							
								other servers in the network.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								## Syntax
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								~~~
							 | 
						||
| 
								 | 
							
								file dbfile [zones...]
							 | 
						||
| 
								 | 
							
								~~~
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								* `dbfile` the database file to read and parse.
							 | 
						||
| 
								 | 
							
								* `zones` zones it should be authoritative for. If empty the zones from the configuration block
							 | 
						||
| 
								 | 
							
								    are used.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								If you want to `round robin` A and AAAA responses look at the `loadbalance` middleware.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								~~~
							 | 
						||
| 
								 | 
							
								file {
							 | 
						||
| 
								 | 
							
								    db <dsds>
							 | 
						||
| 
								 | 
							
								    masters [...masters...]
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								~~~
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								* `path` /skydns
							 | 
						||
| 
								 | 
							
								* `endpoint` endpoints...
							 | 
						||
| 
								 | 
							
								* `stubzones`
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								## Examples
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								dnssec {
							 | 
						||
| 
								 | 
							
								    file blaat, transparant allow already signed responses
							 | 
						||
| 
								 | 
							
								    ksk bliep.dsdsk
							 | 
						||
| 
								 | 
							
								}
							 |