From 2feb864551e8ef27232f2da4a142548310284230 Mon Sep 17 00:00:00 2001 From: Torben Nehmer Date: Tue, 24 Aug 2021 16:41:06 +0200 Subject: [PATCH] DNS logging optimized --- service/dns.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/dns.go b/service/dns.go index 73a566b..2d4cf39 100644 --- a/service/dns.go +++ b/service/dns.go @@ -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 }