Skip to content
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

mDNS within cluster network #18

Open
PAI5REECHO opened this issue Dec 21, 2023 · 2 comments
Open

mDNS within cluster network #18

PAI5REECHO opened this issue Dec 21, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@PAI5REECHO
Copy link

How do I configure mDNS to work within the cluster itself? i.e.:

$ kubectl run -i --tty --rm  --image=alpine --restart=Never --command -- bash

If you don't see a command prompt, try pressing enter.

/ # ping pg.net.local
ping: bad address 'pg.net.local'
@blake blake self-assigned this Mar 9, 2024
@blake blake added the question Further information is requested label Mar 9, 2024
@blake
Copy link
Owner

blake commented Mar 9, 2024

Hi @PAI5REECHO, currently the container uses the scratch Docker image and only contains the external-mdns binary. This would need a different base image, such as Alpine, in order to allow you to exec into the container.

If you're simply looking to test .local DNS resolution from within the cluster, you might try out nicolaka/netshoot.

@iamasmith
Copy link
Contributor

@PAI5REECHO this project publishes MDNS announcements, it doesn't resolve them - the use cases will be hosts outside of your cluster and it does not directly cater for the scope you mentioned.
What you would need is MDNS support in the DNS resolvers used by the Kubernetes nodes which the pods forward onto and this would typically mean an MDNS resolver running on each Kubernetes node by default but this again depends on the pod configuration as well as the specific Kubernetes node implementation you are using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants