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>
This commit is contained in:
Denis Tingaikin 2021-10-27 16:59:21 +03:00 committed by GitHub
parent 6a6905c16c
commit de21fb2436
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 10 deletions

View file

@ -97,7 +97,7 @@ func (e *External) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Ms
case dns.TypeAAAA:
m.Answer = e.aaaa(ctx, svc, state)
case dns.TypeSRV:
m.Answer, m.Extra = e.srv(svc, state)
m.Answer, m.Extra = e.srv(ctx, svc, state)
default:
m.Ns = []dns.RR{e.soa(state)}
}