mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	
		
			
	
	
		
			11 lines
		
	
	
		
			317 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			317 B
		
	
	
	
		
			Go
		
	
	
	
	
	
|  | package autopath
 | ||
|  | 
 | ||
|  | import "github.com/miekg/dns"
 | ||
|  | 
 | ||
|  | // CNAME returns a new CNAME formed from name target and ttl.
 | ||
|  | func CNAME(name string, target string, ttl uint32) *dns.CNAME {
 | ||
|  | 	return &dns.CNAME{
 | ||
|  | 		Hdr:    dns.RR_Header{Name: name, Rrtype: dns.TypeCNAME, Class: dns.ClassINET, Ttl: ttl},
 | ||
|  | 		Target: dns.Fqdn(target)}
 | ||
|  | }
 |