Skip to content

Commit

Permalink
Merge pull request #67 from ori-edge/fix-apex
Browse files Browse the repository at this point in the history
fixed SOA query not returning an answer
  • Loading branch information
networkop authored Jan 10, 2022
2 parents 0ac6af2 + d61176d commit a4cbd09
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apex_dual_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ var testsDualNS = []test.Case{
{
Qname: "example.com.", Qtype: dns.TypeSOA,
Rcode: dns.RcodeSuccess,
Ns: []dns.RR{
Answer: []dns.RR{
test.SOA("example.com. 60 IN SOA dns1.kube-system.example.com. hostmaster.example.com. 1499347823 7200 1800 86400 5"),
},
},
Expand Down
2 changes: 1 addition & 1 deletion apex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var testsApex = []test.Case{
{
Qname: "example.com.", Qtype: dns.TypeSOA,
Rcode: dns.RcodeSuccess,
Ns: []dns.RR{
Answer: []dns.RR{
test.SOA("example.com. 60 IN SOA dns1.kube-system.example.com. hostmaster.example.com. 1499347823 7200 1800 86400 5"),
},
},
Expand Down
2 changes: 1 addition & 1 deletion gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (gw *Gateway) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Ms
// Force to true to fix broken behaviour of legacy glibc `getaddrinfo`.
// See https://github.com/coredns/coredns/pull/3573
m.Authoritative = true
m.Ns = []dns.RR{gw.soa(state)}
m.Answer = []dns.RR{gw.soa(state)}

case dns.TypeNS:

Expand Down
2 changes: 1 addition & 1 deletion gateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ var tests = []test.Case{
// SOA for the existing domain | Test 5
{
Qname: "domain.example.com.", Qtype: dns.TypeSOA, Rcode: dns.RcodeSuccess,
Ns: []dns.RR{
Answer: []dns.RR{
test.SOA("example.com. 60 IN SOA dns1.kube-system.example.com. hostmaster.example.com. 1499347823 7200 1800 86400 5"),
},
},
Expand Down

0 comments on commit a4cbd09

Please sign in to comment.