-
Notifications
You must be signed in to change notification settings - Fork 3
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 with traefik not working? #3
Comments
Dashtainer uses Traefik. You can test out the magic here: https://docs.traefik.io/#the-trfik-quickstart-using-docker Let me know if that works. If it does not, something else is going on with your system. |
I tried the traefik quickstart and everything worked. In the quickstart they run commands like: When I try to use dashtainer there is no way for my local system to resolve I've been experimenting with dnsmasq and added the following to my docker-compose.yml
With the contents of
Ok, running the following commands will get macOS to use the local dns server for *.localhost:
Can then run
|
What MacOS version are you on? I remember traefik auto dns not working for MacOS < 10.13 |
I'm on macOS 10.13.3 I don't think there is such a thing as "auto dns" with traefik. Traefik is a proxy that can understand HTTP headers like Just curious, what do you get when you run the following locally on your mac assuming
|
Here's on Linux:
|
On MacOS, auto-dns seems to only work on Chrome. Safari does not forward On Linux this works in everything. I am unsure in Windows. |
Ah, I was using Firefox which doesn't support |
No, you've pointed out a fairly big issue I had not even thought of testing! What if you follow this: https://gist.github.com/eloypnd/5efc3b590e7c738630fdcf0c10b68072 Can you let me know if this works? If it does, I will def. add those instructions to the website. Now to find a Windows equivalent. |
Just tried the above steps on my MBP; works a treat, all |
I did get dnsmasq to work but I added an entry to docker-compose.yml to run dnsmasq in a container rather than installing it with homebrew. See my previous comment where I show how I did this. |
So I'm waffling on using the dnsmasq container because Linux already points Windows seems like it needs Acrylic, its dnsmasq equivalent. So I can either suggest MacOS folks install the brew formula and set it up, and come up with equivalent instructions for Windows folks, or have a MacOS-only container service and figure something out for Windows. |
Another option would be to do what Hotel does and run a web proxy. See https://github.com/typicode/hotel/blob/master/docs/README.md Here is the template for their PAC (proxy auto config) file: |
I'm on Windows and set up the ISC BIND DNS server so I could have wildcard routing on If anyone is interested in the config I'm using for BIND, I've added it below. Note that you should change named.conf (8.8.8.8 and 8.8.4.4 are Google's DNS servers)
loc.zone
|
I am running Docker for Mac 18.03.0-ce-mac60. The instructions say to access traefik at http://docker.localhost:8080 but I have no idea how that is supposed to work unless I add an entry to my
/etc/hosts
file fordocker.localhost
. I can access the traefik dashboard at http://localhost:8080/dashboard/#/ and I see entries for the services.It says I should be able to access my project at http://awesome.localhost but that does not work. How is it supposed to resolve that in DNS? Do I need to use
dnsmasq
or something like that?As expected it cannot resolve
awesome.localhost
Just wondering how this is supposed to work.The text was updated successfully, but these errors were encountered: