-
-
Notifications
You must be signed in to change notification settings - Fork 481
resolvconf.conf needs modification so local Docker containers get DNS #8
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
Comments
Also—to immediately regenerate the file you can run |
Another symptom seems to be "DNS temporarily unavailable" when attempting to update gravity from the Pi-Hole GUI. Changing /etc/resolve.conf in the container from 127.0.0.11 to 127.0.0.1 seemed to fix it. |
I'm running only the internet monitoring part, and with the uptime domain checker thingy I get this error too. Sometimes it does work, and sometimes it fetches with this error (and then the domain gets a red bar).
https://stackoverflow.com/questions/49817558/context-deadline-exceeded-prometheus |
Ran into this same issue... uncommenting +1 to adding this change to the playbook |
how do i fix this if im running networkmanager and resolvconf isnt installed? |
+1 I had this same problem with the |
why is this change not in the ansible repo? |
Guess this is related to this issue, but then it also somehow behaves differently. Upon trying to get GRAFANA running, I get the restart loop as described by many others. Starting the
The /etc/resolv.conf looks like this:
And the /etc/resolvconf.conf looks like this:
Finally I checked for the available networks with Any ideas from you helpful and experienced docker-folks out there? |
In fact #375 worked for me as a solution. |
For any future visitors: That only helped, because docker used the default 8.8.8.8 dns in its /etc/resolv.conf. Real solution was https://stackoverflow.com/questions/64007727/docker-compose-internal-dns-server-127-0-0-11-connection-refused |
Thanks! My Grafana container finally works properly. 😃 |
Over in geerlingguy/internet-monitoring#12 I was scratching my head over some new DNS issues with monitoring containers not being able to resolve DNS names—it caused Grafana to fail to launch, and all pings (once I figured out a way to get Grafana happy again) to fail.
As it turns out, Docker's built-in resolver at
127.0.0.11
was hitting the wrong backend for some reason since the Pi was getting it's LAN IP in/etc/resolv.conf
.So the fix was to uncomment the line:
Inside
/etc/resolvconf.conf
.It's probably important enough a change for compatibility that I should add a bit to the Ansible playbook to update that line in the file using
lineinfile
.The text was updated successfully, but these errors were encountered: