coredns/test
Miek Gieben 26c41a0c17
plugin/file: fix local CNAME lookup (#1866)
* plugin/file: fix local CNAME lookup

Issue #1864 explains it will, when we serve the child zone as well we
should just recursive into ourself (upstream self). Thus relax the
IsSubDomain check in file/lookup.go and just query (even if the query
will hit a remote server).

I've looped over all other plugins that do something similar (CNAME
resolving) and they didn't do the IsSubDomain check; therefor I've
removed it from *file* as well.

Added test in file_upstream_test that shows this failed before but now
results in a reply.

Fixes #1864

* self does not need to be exported

* Fix test

We don't know if we had a valid reply. Check this.
2018-06-12 14:54:37 +01:00
..
auto_test.go Remove the word middleware (#1067) 2017-09-14 09:36:06 +01:00
cache_test.go Extend presubmit to covert test and request (#1846) 2018-06-01 15:12:49 +01:00
chaos_test.go tests: CoreDNSServerAndPorts (#972) 2017-08-24 11:35:14 +01:00
doc.go Doc: add package docs (#296) 2016-09-25 08:39:20 +01:00
ds_file_test.go Extend presubmit to covert test and request (#1846) 2018-06-01 15:12:49 +01:00
erratic_autopath_test.go tests: CoreDNSServerAndPorts (#972) 2017-08-24 11:35:14 +01:00
etcd_cache_test.go Extend presubmit to covert test and request (#1846) 2018-06-01 15:12:49 +01:00
etcd_test.go Extend presubmit to covert test and request (#1846) 2018-06-01 15:12:49 +01:00
example_test.go test: fix zone file (#1112) 2017-09-26 19:41:49 +01:00
external_test.go Extend presubmit to covert test and request (#1846) 2018-06-01 15:12:49 +01:00
file.go Pr 311 2 (#312) 2016-10-02 15:58:01 +01:00
file_cname_proxy_test.go Remove the word middleware (#1067) 2017-09-14 09:36:06 +01:00
file_reload_test.go plugin/{file,auto}: drop fsnotify (#1090) 2017-09-20 17:28:23 +01:00
file_serve_test.go plugin/file: fix crash (#1301) 2017-12-11 14:32:51 +00:00
file_srv_additional_test.go Remove the word middleware (#1067) 2017-09-14 09:36:06 +01:00
file_test.go Extend presubmit to covert test and request (#1846) 2018-06-01 15:12:49 +01:00
file_upstream_test.go plugin/file: fix local CNAME lookup (#1866) 2018-06-12 14:54:37 +01:00
grpc_test.go Extend presubmit to covert test and request (#1846) 2018-06-01 15:12:49 +01:00
hosts_file_test.go Add inline support for middleware/hosts (#1072) 2017-09-21 04:18:13 -07:00
metrics_test.go Remove the word middleware (#1067) 2017-09-14 09:36:06 +01:00
miek_test.go middleware/file: fix DS handling (#344) 2016-10-19 17:46:03 +01:00
plugin_dnssec_test.go Fix presubmit (#1850) 2018-06-02 20:28:56 +01:00
plugin_test.go Extend presubmit to covert test and request (#1846) 2018-06-01 15:12:49 +01:00
proxy_health_test.go Remove the word middleware (#1067) 2017-09-14 09:36:06 +01:00
proxy_http_health_test.go Extend presubmit to covert test and request (#1846) 2018-06-01 15:12:49 +01:00
proxy_test.go Extend presubmit to covert test and request (#1846) 2018-06-01 15:12:49 +01:00
readme_test.go readme: more tests (#1184) 2017-10-31 07:14:49 +00:00
reload_test.go reload: don't fail test on addr in use (#1804) 2018-05-18 07:26:45 +01:00
reverse_test.go Implement deprecation notice for 1.1.4 (#1833) 2018-05-24 14:30:01 +01:00
rewrite_test.go tests: CoreDNSServerAndPorts (#972) 2017-08-24 11:35:14 +01:00
secondary_test.go Extend presubmit to covert test and request (#1846) 2018-06-01 15:12:49 +01:00
server.go tests: CoreDNSServerAndPorts (#972) 2017-08-24 11:35:14 +01:00
server_reverse_test.go CIDR query routing (#1159) 2017-10-24 10:16:03 +01:00
server_test.go tests: CoreDNSServerAndPorts (#972) 2017-08-24 11:35:14 +01:00
wildcard_test.go Extend presubmit to covert test and request (#1846) 2018-06-01 15:12:49 +01:00