-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add host.containers.internal entry in aardvark-dns #345
Comments
Moved to aardvark-dns repo In principle that would be possible. However I am not sure if doing this would not break users, at the very least we would need to respect the containers.conf Also in the podman machine scenario right now we do not add the entry in /etc/hosts and let it fall back to the internal gvproxy dns server which would return you the actual proper host ip and not the VM ip. If we have aardvark-dns in between replying then this would no longer work. |
I am currently running into an issue with Nginx where it does not resolve host.containers.internal because it does not read /etc/hosts for lookups. Having host.containers.internal entry in aardvark-dns would make it just work without extra workarounds. |
yeah, there are cases where |
I'm playing around this right now. A workaround is pretty easy: just add a host line to However this comes with a side effect: in addtion to making host resolvable by containers, it also makes the containers' short names and If there are some bigger changes planned in this area, changes in this direction would seem good to me:
The last bullet would, if I read correctly this discussion/comment, make the behaviour the same as docker's and based on many questions/issues about container name resolution, as many people expect... (Just for the context: my use case is to run the IPA container and make the host its client. For this, I need to resolve container's FQDN from the host and ... there's no straightforward solution to setting up the DNS for this case, while it feels that it should be as easy as instructing host's local resolver to forward requests for |
Feature request description
Hi,
I think that adding the host.containers.internal entry in aardvark-dns would be more consistent and quite handy in some cases.
Suggest potential solution
No response
Have you considered any alternatives?
No response
Additional context
When using podman as backend for a k8s kind cluster, host.containers.internal is not resolvable because k8s's internal coredns forwards requests directly to aardvark-dns and /etc/hosts is not propagated to pods.
The text was updated successfully, but these errors were encountered: