Skip to content

Commit

Permalink
dns: fix missing header for txt record
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed Jan 18, 2024
1 parent d57a7f9 commit 96d7891
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/roles/dns/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func (r *Record) ToDNS(qname string) dns.RR {
rr.(*dns.CNAME).Target = r.Data
case dns.TypeTXT:
rr = &dns.TXT{}
rr.(*dns.TXT).Hdr = hdr
rr.(*dns.TXT).Txt = strings.Split(r.Data, TXTSeparator)
}
return rr
Expand Down

0 comments on commit 96d7891

Please sign in to comment.