We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I use multiycluster, and I andd a serviceImport, I found it cannot reslove the domain name. And I had a doubt:
the code is following,and I add some log:
func (m MultiCluster) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error) { state := request.Request{W: w, Req: r} qname := state.QName() zone := plugin.Zones(m.Zones).Matches(qname) log.Warningf("haha===ServeDNS qname:%+v,m.Zones:%+v", qname, m.Zones) log.Warningf("haha===ServeDNS CompareDomainName:%+v,CountLabel:%+v", dns.CompareDomainName("cluster.local.", qname), dns.CountLabel("cluster.local.")) log.Warningf("haha===ServeDNS dns.Msg:r(%+v)", r) log.Warningf("haha===ServeDNS state: %+v", state.Req) if zone == "" { return plugin.NextOrFailure(m.Name(), m.Next, ctx, w, r) } zone = qname[len(qname)-len(zone):] // maintain case of original query ....
And the logs are:
[WARNING] plugin/multicluster: haha===ServeDNS zone:cluster.local [WARNING] plugin/multicluster: haha===ServeDNS qname:3629697582728363839.1269917840174598765.,m.Zones:[cluster.local.] [WARNING] plugin/multicluster: haha===ServeDNS CompareDomainName:0,CountLabel:2 [WARNING] plugin/multicluster: haha===ServeDNS dns.Msg:r(;; opcode: QUERY, status: NOERROR, id: 21087 ;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;3629697582728363839.1269917840174598765. IN HINFO )
I'm confused about why qname is "3629697582728363839.1269917840174598765", not like "cluster.local"?
version: k8s v1.26, coredns v1.9.3
The text was updated successfully, but these errors were encountered:
@runakash can you take a look?
Sorry, something went wrong.
Looks like you're logging the address to the struct.
No branches or pull requests
When I use multiycluster, and I andd a serviceImport, I found it cannot reslove the domain name.
And I had a doubt:
the code is following,and I add some log:
And the logs are:
I'm confused about why qname is "3629697582728363839.1269917840174598765", not like "cluster.local"?
version: k8s v1.26, coredns v1.9.3
The text was updated successfully, but these errors were encountered: