-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
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
nodelocaldns rewrite throws NXDOMAIN #525
Comments
The rewrite plugin doesn't re-feed the query back into coredns, the query more or less continues down the plugin chain, in the same server block, but with the query name altered. So, it's 172.16.0.162 172.16.0.163 that try to resolve the The following will forward the rewritten query to 10.239.0.3.
|
Thank you very much. It worked! } |
No |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/close |
I am trying to use rewrite module to change the DNS response for pods inside the cluster.
My setup contains coredns + nodelocaldns:
The default nodelocaldns configmap installed by kubespray is as follows:
Now what I am trying is to change the DNS for git.my.domain to git.gogs.svc.k8s.cluster.
Before doing any changes to the nodelocaldns config map, this is the response I get from any pod:
For git.my.domain
For git.gogs.svc.k8s.cluster:
Now I add the
rewrite name git.my.domain git.gogs.svc.k8s.cluster
to the configmap:and restart the nodelocaldns pods.
After that all pods gets NXDOMAIN for the git.my.domain
Wasn't that suppose to work?
The text was updated successfully, but these errors were encountered: