DNS logging optimized
This commit is contained in:
		@@ -66,14 +66,14 @@ func DNSUpdateEntry(domain string, hostname string, ip4 net.IP, ip6 net.IP) erro
 | 
			
		||||
 | 
			
		||||
	msg.Insert(rrs)
 | 
			
		||||
 | 
			
		||||
	log.Printf("Sending DNS Update: %v", msg)
 | 
			
		||||
	log.Printf("Sending DNS Update for %s.%s:\n%v", hostname, domain, msg)
 | 
			
		||||
 | 
			
		||||
	reply, _, err := dnsClient.Exchange(msg, C.DNS.Server)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return fmt.Errorf("failed to execute DNS Udpate: %v", err)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	log.Printf("Received DNS Update Reply: %v", reply)
 | 
			
		||||
	log.Printf("Received DNS Update Reply for %s.%s:\n%v", hostname, domain, reply)
 | 
			
		||||
 | 
			
		||||
	return nil
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user