@@ -28,6 +28,7 @@ import (
2828 "strings"
2929 "time"
3030
31+ "github.com/haproxytech/dataplaneapi/log"
3132 "github.com/miekg/dns"
3233)
3334
@@ -142,6 +143,8 @@ func checkDNSPropagation(ctx context.Context, fqdn string, recType uint16, expec
142143 }
143144 populateNameserverPorts (authoritativeServers )
144145 resolvers = authoritativeServers
146+ log .Debugf ("events: acme deploy: %s: using DNS resolvers %v, check authoritative servers=%v" ,
147+ fqdn , resolvers , checkAuthoritativeServers )
145148 }
146149
147150 return checkAuthoritativeNss (ctx , fqdn , recType , expectedValue , resolvers )
@@ -172,6 +175,9 @@ func checkAuthoritativeNss(ctx context.Context, fqdn string, recType uint16, exp
172175 record := strings .Join (txt .Txt , "" )
173176 if record == expectedValue {
174177 return true , nil
178+ } else {
179+ log .Debugf ("events: acme deploy: %s: TXT record mismatch! Expected %q, Got %q" ,
180+ fqdn , expectedValue , record )
175181 }
176182 }
177183 case dns .TypeCNAME :
@@ -221,6 +227,7 @@ func updateDomainWithCName(r *dns.Msg, fqdn string) string {
221227 for _ , rr := range r .Answer {
222228 if cn , ok := rr .(* dns.CNAME ); ok {
223229 if cn .Hdr .Name == fqdn {
230+ log .Debugf ("events: acme deploy: %s: updated FQDN with CNAME value: %q" , fqdn , cn .Target )
224231 return cn .Target
225232 }
226233 }
0 commit comments