Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
vpn-tcp (sshuttle) method doesn't work with fully qualified .local domains on Linux #161
sshuttle works by capturing DNS packets.
Potential solution: bind mount (in mount namespace) a new /etc/nss.conf that disable mDNS for the telepresence subprocess.
changed the title
vpn-tcp (sshuttle) method doesn't work with fully qualified .local domains
Jun 5, 2017
On Ubuntu 16.04:
What that says is: "When looking up DNS hosts, check local files (e.g. /etc/hosts), then mDNS, then DNS."
You can use
That's the theory.
There may be other, simpler approaches.
@itamarst Thanks for the reply. Which host needs the nsswitch.conf modifications? I looked in minikube and it has no mDNS entries. I have a dumb Ubuntu 16.04 (running /sbin/init) deployment that I swap with telepresence for my local. That container also does not have mDNS in its nsswitch.conf.
My goal is to develop an operator on minikube and run the operator code (golang) locally on mac using telepresence. I was successful in getting the operator to run in this way but it closed after failing to resolve DNS. Is this golang related?
@jascott1 This issue concerns running Telepresence (and your own code) on a Linux host, i.e. the development machine is Linux. When your code performs a DNS lookup for
That said, we should figure out what's going wrong and get you productive. Can you open a new issue and/or poke us on Gitter? Thanks.
@itamarst Thanks for expanding on the potential solution.
Any update on this issue, I think that i have hit this when trying to access my redis cluster via telepresence. Works fine when I port-forward a specific pod or when I deploy into K8s.
Developing locally and attempting to use the service wont allow me to access redis cache via service name. I can probably work around by manually using port-forwarding locally and then use the URL localhost: when connecting to redis. This seems to work but isn't really using the service properly
I am developing on ubuntu (18.04) and let me know if you have any questions.
The fix that worked for us is to move