mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			486 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			486 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # tls
 | |
| 
 | |
| *tls* allows you to configure the server certificates for the TLS and gRPC servers.
 | |
| For other types of servers it is ignored.
 | |
| 
 | |
| ## Syntax
 | |
| 
 | |
| ~~~ txt
 | |
| tls CERT KEY CA
 | |
| ~~~
 | |
| 
 | |
| ## Examples
 | |
| 
 | |
| Start a DNS-over-TLS server.
 | |
| 
 | |
| ~~~
 | |
| tls://.:4453 {
 | |
| 	tls cert.pem key.pem ca.pem
 | |
| 	proxy . /etc/resolv.conf
 | |
| }
 | |
| ~~~
 | |
| 
 | |
| Start a DNS-over-gRPC server. If the `tls` directive were omitted, then
 | |
| it would use plain HTTP not HTTPS.
 | |
| 
 | |
| ~~~
 | |
| grpc://.:443 {
 | |
| 	tls cert.pem key.pem ca.pem
 | |
| 	proxy . /etc/resolv.conf
 | |
| }
 | |
| ~~~
 |