diff --git a/cmd/sdns-proxy/sdns-proxy.go b/cmd/sdns-proxy/sdns-proxy.go index 3a1b00b..05c5279 100644 --- a/cmd/sdns-proxy/sdns-proxy.go +++ b/cmd/sdns-proxy/sdns-proxy.go @@ -61,6 +61,7 @@ func (q *QueryCmd) Run() error { msg.SetQuestion(dns.Fqdn(q.DomainName), qTypeUint) msg.Id = dns.Id() msg.RecursionDesired = true + msg.SetEdns0(4096, q.DNSSEC) logger.Debug("Sending DNS query: ID=%d, Question=%s %s", msg.Id, q.DomainName, q.QueryType) _, recvMsg, err := dnsClient.Query(msg) diff --git a/internal/qol/measurement.go b/internal/qol/measurement.go index 175ceb8..fbdbf96 100644 --- a/internal/qol/measurement.go +++ b/internal/qol/measurement.go @@ -202,6 +202,7 @@ func (r *MeasurementRunner) performQuery(dnsClient client.DNSClient, domain, ups msg.Id = dns.Id() msg.RecursionDesired = true msg.SetQuestion(dns.Fqdn(domain), qType) + msg.SetEdns0(4096, r.config.DNSSEC) start := time.Now() metric.Timestamp = start