aboutsummaryrefslogtreecommitdiff
path: root/plugin/errors
diff options
context:
space:
mode:
authorGravatar Carl-Magnus Björkell <cmb@tradeshift.com> 2019-01-28 17:38:27 +0100
committerGravatar Miek Gieben <miek@miek.nl> 2019-01-28 16:38:27 +0000
commita84c26d78b45e63d13903a888b8c693d0daea9f0 (patch)
tree7ce0477f4fe96eb2797c4a611d2c3180572a4857 /plugin/errors
parente3435566879c6a7ed564fc7108a12c0121ecd56c (diff)
downloadcoredns-a84c26d78b45e63d13903a888b8c693d0daea9f0.tar.gz
coredns-a84c26d78b45e63d13903a888b8c693d0daea9f0.tar.zst
coredns-a84c26d78b45e63d13903a888b8c693d0daea9f0.zip
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.
Diffstat (limited to 'plugin/errors')
0 files changed, 0 insertions, 0 deletions