diff --git a/.drone.yml b/.drone.yml index affc41c..e6cd12b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,6 +9,7 @@ steps: environment: CGO_ENABLED: 0 commands: + - go vet - go build - name: upload diff --git a/dns.go b/dns.go index 4462bff..3a60486 100644 --- a/dns.go +++ b/dns.go @@ -394,7 +394,11 @@ func (s *DNSServer) Query() *DNSResult { // query the dn42 root zone SOA msg.Question = []dns.Question{ - {"dn42.", dns.TypeSOA, dns.ClassINET}, + dns.Question{ + Name: "dn42.", + Qtype: dns.TypeSOA, + Qclass: dns.ClassINET, + }, } // add EDNS0 options to also query the service ID (NSID)