coredns/plugin
Carl-Magnus Björkell a84c26d78b plugin/etcd: Filter empty host field by qtype (#2499)
When a query, different from a TXT lookup is performed, all services
with a missing `Host` field should be filtered out, as these otherwize
cause a line in the answer section with a single dot (`.`) as the
result. This behavior manifests for example when a TXT record is present
on a domain, eg. an A or SRV lookup is performed on said domain.

If there are no services containing a `Host` field, a `NODATA` response
should be given. If there are other Services, these alone should be
returned for the query.

Filter any service that has an empty Host field from all lookup types
other than TXT to solve this issue. At the same time the check for empty
`Text` fields in TXT queries are also moved to the same check in the
etcd ServiceBackend.
2019-01-28 16:38:27 +00:00
..
auto Default to upstream to self (#2436) 2019-01-13 16:54:49 +00:00
autopath Stop importing testing in the main binary (#2479) 2019-01-19 11:23:13 +00:00
bind Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
cache Stop importing testing in the main binary (#2479) 2019-01-19 11:23:13 +00:00
chaos Fuzzing: add more fuzzing targets (#2402) 2018-12-17 07:49:15 +00:00
debug Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
deprecated Implement deprecation notice for 1.1.4 (#1833) 2018-05-24 14:30:01 +01:00
dnssec Stop importing testing in the main binary (#2479) 2019-01-19 11:23:13 +00:00
dnstap Stop importing testing in the main binary (#2479) 2019-01-19 11:23:13 +00:00
erratic Fix EDNS0 compliance (#2357) 2018-12-06 21:18:11 +00:00
errors recommended (#2283) 2018-11-09 20:32:43 +00:00
etcd plugin/etcd: Filter empty host field by qtype (#2499) 2019-01-28 16:38:27 +00:00
federation Stop importing testing in the main binary (#2479) 2019-01-19 11:23:13 +00:00
file Stop importing testing in the main binary (#2479) 2019-01-19 11:23:13 +00:00
forward fix tls_servername in cloudflare example (#2466) 2019-01-15 09:18:20 -08:00
health Fix a typo in health plugin readme (#2274) 2018-11-06 08:54:53 -08:00
hosts plugin/hosts: fix for ipv4-in-ipv6 (#2506) 2019-01-28 16:36:34 +00:00
import Generate man-pages (#2439) 2019-01-06 09:15:34 +00:00
k8s_external Stop importing testing in the main binary (#2479) 2019-01-19 11:23:13 +00:00
kubernetes Update README.md (#2490) 2019-01-23 08:49:16 -05:00
loadbalance Do not muck with ordering of XFRs (#2329) 2018-11-21 08:38:19 +01:00
log plugin/log: support multi nameScope (#2420) 2019-01-08 07:40:50 +00:00
loop plugin/loop: show from -> to (#2400) 2018-12-16 13:48:09 -08:00
metadata Typo fixes (#2031) 2018-08-14 08:55:55 -07:00
metrics Stop importing testing in the main binary (#2479) 2019-01-19 11:23:13 +00:00
nsid Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
pkg Default to upstream to self (#2436) 2019-01-13 16:54:49 +00:00
pprof Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
proxy Correct formatting of policies list (#2509) 2019-01-28 10:07:13 -05:00
reload Stop importing testing in the main binary (#2479) 2019-01-19 11:23:13 +00:00
rewrite Use Trim(Prefix/Suffix) instead of Trim(Left/Right) in rewrite prefix plugin (#2364) (#2372) 2018-12-06 22:10:46 +00:00
root Typo fixes (#2031) 2018-08-14 08:55:55 -07:00
route53 Default to upstream to self (#2436) 2019-01-13 16:54:49 +00:00
secondary Default to upstream to self (#2436) 2019-01-13 16:54:49 +00:00
template Default to upstream to self (#2436) 2019-01-13 16:54:49 +00:00
test golint fix (#2504) 2019-01-27 17:55:07 +00:00
tls Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
trace Add request and response context to traces (#2162) 2018-10-05 20:13:16 +00:00
whoami Fuzzing: add more fuzzing targets (#2402) 2018-12-17 07:49:15 +00:00
backend.go all: fix plugin import ordering (#1717) 2018-04-22 08:34:35 +01:00
backend_lookup.go plugin/etcd: Filter empty host field by qtype (#2499) 2019-01-28 16:38:27 +00:00
log_test.go Clean up tests logging (#1979) 2018-07-19 16:23:06 +01:00
normalize.go plugin/kubernetes: fix case preservation and add test (#2430) 2019-01-08 08:30:03 -05:00
normalize_test.go Stop importing testing in the main binary (#2479) 2019-01-19 11:23:13 +00:00
plugin.go fix typo (#2272) 2018-11-05 05:59:24 -08:00