diff options
author | 2021-10-27 16:59:21 +0300 | |
---|---|---|
committer | 2021-10-27 09:59:21 -0400 | |
commit | de21fb24367f1586376c48e27de3318c48b59ea3 (patch) | |
tree | 81d4bb476b11c7a4bfc0f92c5af3712b36ac507e /plugin/k8s_external/external_test.go | |
parent | 6a6905c16c585b1d182b8c6ca3afd6fb2a3f4d24 (diff) | |
download | coredns-de21fb24367f1586376c48e27de3318c48b59ea3.tar.gz coredns-de21fb24367f1586376c48e27de3318c48b59ea3.tar.zst coredns-de21fb24367f1586376c48e27de3318c48b59ea3.zip |
plugin/k8s_external: fix SRV queries doesn't work with AWS ELB/NLB (#4929)
* fix for issue #4927
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
* apply review comments
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
* apply review comments
Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Diffstat (limited to 'plugin/k8s_external/external_test.go')
-rw-r--r-- | plugin/k8s_external/external_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/k8s_external/external_test.go b/plugin/k8s_external/external_test.go index 02266a71a..cc29fd7a6 100644 --- a/plugin/k8s_external/external_test.go +++ b/plugin/k8s_external/external_test.go @@ -154,6 +154,12 @@ var tests = []test.Case{ }, }, { + Qname: "_http._tcp.svc12.testns.example.com.", Qtype: dns.TypeSRV, Rcode: dns.RcodeSuccess, + Answer: []dns.RR{ + test.SRV("_http._tcp.svc12.testns.example.com. 5 IN SRV 0 100 80 dummy.hostname."), + }, + }, + { Qname: "svc12.testns.example.com.", Qtype: dns.TypeA, Rcode: dns.RcodeSuccess, Answer: []dns.RR{ test.CNAME("svc12.testns.example.com. 5 IN CNAME dummy.hostname"), |