1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

fix tests

This commit is contained in:
Tom Limoncelli
2023-11-12 20:16:14 -05:00
parent 863db836e2
commit d27d8e4f9a
8 changed files with 63 additions and 67 deletions

View File

@ -199,10 +199,10 @@ func ParseZoneContents(content string, zoneName string, zonefileName string) (mo
if rtype == "TXT" {
v := rr.(*dns.TXT)
t := strings.Join(v.Txt, "")
fmt.Fprintf(os.Stdout, "DEBUG: ParseZoneContents inbounds=%s\n", t)
//fmt.Fprintf(os.Stdout, "DEBUG: ParseZoneContents inbounds=%s\n", t)
td := strings.ReplaceAll(t, `\"`, `"`)
td = strings.ReplaceAll(td, `\\`, `\`)
fmt.Fprintf(os.Stdout, "DEBUG: ParseZoneContents decodeds=%s\n", td)
//fmt.Fprintf(os.Stdout, "DEBUG: ParseZoneContents decodeds=%s\n", td)
rec := models.RecordConfig{Type: "TXT"}
rec.SetLabelFromFQDN(strings.TrimSuffix(header.Name, "."), zoneName)