-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
DNS resolution fails if default search domain has a wildcard match #17316
Comments
I ran into this exact same issue with a fresh installation of OCP 3.7 on a RHEL 7.4 VM. The outbound networking worked from the VM. The outbound networking also worked when I ran a container out of band from Kubernetes (using docker run). OCP ran the container, the outbound networking broke but it could be fixed by removing the options ndots:5 or "search josborne.com". I couldn't figure out where "search josborne.com" was even coming from because I didn't set that anywhere in the Ansible advanced installation. I changed my /etc/hostname file from openshift.josborne.com to openshift and rebooted. At that point "search josborne.com" was removed from the pod /etc/resolv.conf and everything started working. Is this user error or a bug? I've installed every release of OCP from scratch using a FQDN in my /etc/hostname file and it first broke in either 3.6 or 3.7 so I think something has changed in the platform. |
Right, so the problem is that if the domain that gets listed in the I guess the What we really want is to make service name lookups behave like The other possibility would be to stop including the node's domain in the pod resolv.conf's |
Since the way to install openshift is to go with ansible playbook. I would add extra validation in ansible to make sure the provided DNS domain is behaving as you like. If not, the playbook should fail and warn the user. |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
This is still an issue. |
For minishift this is an issue with some Hypervisor that force a search entry from the DHCP offer. Eg. HyperV on the "default switch" uses |
Note: the |
Same issue with ansible install openshift 3.10 |
Same for me: |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
Hello, is there a workaround for this? I seem to be facing the same issue with k8s 1.19, coredns and my external domain which is part of the DNS search path, having wildcard match |
Name resolution from inside the pod seams to be broken because of multiple factor.
Version
Steps To Reproduce
Look like the
/etc/resolv.conf
file generated by openshift is not working in every scenario.Just to show it's working with something...
This is the /etc/resolv.conf generated in the pod. not working
If I remove my domain name
patrikdufresne.com
. workingAlso working if I remove
ndots:5
.The text was updated successfully, but these errors were encountered: