From dba4ce70086250b860d9fa76c5d458e8f36729f4 Mon Sep 17 00:00:00 2001 From: JeremyRand Date: Sun, 11 Feb 2018 19:56:14 +0000 Subject: [PATCH] Fix erroneous duplication of domain name in TLSA records served over DNS. --- ncdomain/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncdomain/convert.go b/ncdomain/convert.go index e66cdb8..fafe809 100644 --- a/ncdomain/convert.go +++ b/ncdomain/convert.go @@ -275,7 +275,7 @@ func (v *Value) appendTLSA(out []dns.RR, suffix, apexSuffix string) ([]dns.RR, e derBytesHex := hex.EncodeToString(derBytes) out = append(out, &dns.TLSA{ - Hdr: dns.RR_Header{Name: suffix, Rrtype: dns.TypeTLSA, Class: dns.ClassINET, + Hdr: dns.RR_Header{Name: "", Rrtype: dns.TypeTLSA, Class: dns.ClassINET, Ttl: defaultTTL}, Usage: uint8(3), Selector: uint8(0),