coredns/middleware
Miek Gieben 30ecb83dce middleware/secondary: fix crash with no zone (#680)
When CoreDNS starts up and can't get a zone transfer going the Apex is
empty. This `nil` is then transformed into wireformat, which fails with
a nil pointer dereference in Go DNS.

In this case we should just return SERVFAIL, because we don't have any
info (yet). Note the lookup code returned NXDOMAIN, which is correct
from a lookup standpoint, but also invalidates every name in the future
loaded zone.

Anyway, look for an apex before doing the lookup and return SERVFAIL if
nothing is found.

Fixes #679
2017-06-01 12:33:40 +01:00
..
auto Fix import path github.com/miekg/coredns -> github.com/coredns/coredns (#547) 2017-02-22 06:51:47 +00:00
bind Fix import path github.com/miekg/coredns -> github.com/coredns/coredns (#547) 2017-02-22 06:51:47 +00:00
cache middleware/cache: don't cache expired RRSIGs (#641) 2017-04-29 07:06:42 -07:00
chaos middleware/chaos: fix version (#669) 2017-05-22 08:09:35 -04:00
dnssec middleware/cache: don't cache expired RRSIGs (#641) 2017-04-29 07:06:42 -07:00
erratic Tc bits (#617) 2017-04-16 07:49:13 +01:00
errors middleware/{log,errors}: output everything to stdout (#684) 2017-05-31 20:28:53 +01:00
etcd Add k8s external service CNAMEs (#677) 2017-05-30 13:20:39 +01:00
file middleware/secondary: fix crash with no zone (#680) 2017-06-01 12:33:40 +01:00
health Fix import path github.com/miekg/coredns -> github.com/coredns/coredns (#547) 2017-02-22 06:51:47 +00:00
kubernetes Add k8s external service CNAMEs (#677) 2017-05-30 13:20:39 +01:00
loadbalance Gofmt all code (#552) 2017-02-22 16:06:20 +00:00
log middleware/{log,errors}: output everything to stdout (#684) 2017-05-31 20:28:53 +01:00
metrics middleware/metrics: allow multiple listeners 2017-04-12 10:10:57 +00:00
pkg middleware/cache: don't cache expired RRSIGs (#641) 2017-04-29 07:06:42 -07:00
pprof Pprof listen (#639) 2017-04-24 10:27:26 -04:00
proxy Fix typos (#682) 2017-05-30 15:03:35 +01:00
reverse Update README.md (#668) 2017-05-26 09:02:51 -04:00
rewrite Rewrite edns0 (#561) 2017-03-06 21:32:17 +00:00
root core: add more transports (#574) 2017-03-13 20:24:37 +00:00
secondary middleware/file: correctly parse the stanza (#658) 2017-05-03 16:36:41 +01:00
test middleware/file: add DNAME support (#651) 2017-05-26 10:37:06 +01:00
tls Fix TLS error message (#634) 2017-04-20 09:40:18 -04:00
trace Tracing for gRPC Server (#619) 2017-04-18 11:10:49 -04:00
whoami Fix import path github.com/miekg/coredns -> github.com/coredns/coredns (#547) 2017-02-22 06:51:47 +00:00
backend.go Fix import path github.com/miekg/coredns -> github.com/coredns/coredns (#547) 2017-02-22 06:51:47 +00:00
backend_lookup.go Add k8s external service CNAMEs (#677) 2017-05-30 13:20:39 +01:00
middleware.go Gofmt all code (#552) 2017-02-22 16:06:20 +00:00
middleware_test.go Use context.Context 2016-03-19 07:32:50 +00:00
normalize.go core: add more transports (#574) 2017-03-13 20:24:37 +00:00
normalize_test.go Add tests for normalize.go 2016-09-07 12:55:41 +00:00