Create this file with the following contents to set two DNS, firstly your network’s DNS server, and secondly the Google DNS server to fall back to in case that server isn’t available:
/etc/docker/daemon.json:
{
“dns”: [“192.168.0.1”, “8.8.8.8”]
}
Then restart the docker service:
sudo service docker restart
Then, the DuckDNS addon starts and Letsencrytp is accessed properly, but the other addons break.
Thanks for your post, this validates my understanding of the reason for the issues experienced. There is a need for the developers of the DuckDns Addon to review the issue and adjust the code.
No.
I am afraid that we have to wait for the DuckDNS addon developers to provide a fix or switch to another solution for SSL.
I am considering Caddy if the solution takes long time. But I am a newbie in this issues…
Hey, thanks for posting your solution after all this time.
It just so happens that I’m also trying to setup duckdns with let’sencrypt and failing miserably. In my case your solution achieved nothing cause I dont have a /run/systemd/resolve/resolv.conf to symlink to so it just creates an empty resolv.conf in /etc/
The other solutions I gathered from other similar threads also fail:
creating daemon.json with dns addresses in docker broke hassio
mapping port 80 to 85 in my router and then trying to run the addon container with -p 85:80 (I just don’t know the init commands to that.)
My installation is hass.io on a Ubuntu 18.04 server running as a virtualbox VM in windows10. I’ve got no other issues regarding networking and even have Pi-Hole up and running.
Any other ideas would be very welcome and promptly tested
Thank you @Eszyman, that fixed my connectivity issues with Hassio and DuckDNS running on Ubuntu Server 17.10, which I have running in VirtualBox within Windows 10.
I have been looking for a solution to this problem ever sens I have upgraded my install from 16.04 to 18.04. Your solution is the first one that worked for me. Thank you for you help.
I run the " sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf " on my ubuntu 18.04.01, and now i can´t acess to the home assistant page in my home network (192.168.x.x:8123)
I am not having Linux but directly Hassio on my Raspberry 4.
I am having the same issue and I don’t know how to solve it.
I fixed the IP and DNS address using the my_network file and a USB stick but I am not sure of what I should put in the DNS section.
I haven’t configured any port routing yet on my router.