Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.29 KB

systemd-resolved.md

File metadata and controls

48 lines (31 loc) · 1.29 KB

<< Return to the tutorial

Troubleshooting Auto DNS and systemd-resolved

ERROR: for devilbox_bind_1 Cannot start service bind: (…) address already in use

This error might occur with the cytopia/bind container when using docker-compose up -d.

Ubuntu & derivates

The following was tested on Ubuntu 19.10

Delete the systemd-resolved stub-file first:

sudo rm /etc/resolve.conf

Symlink the systemd-resolved file:

sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

Edit the systemd-resolved configuration:

sudo nano /etc/systemd/resolved.conf

Change the following in it:

[Resolve]
DNS=127.0.0.1 8.8.8.8
FallbackDNS=1.1.1.1 8.8.4.4

Restart systemd-resolved to validate the configuration:

sudo systemctl restart systemd-resolved.service

Save somewhere the dbox tool, change the path to your devilbox installation and set it excutable chmod u+x dbox.sh; else you'll have to manually stop systemd-resolved, start devilbox and start systemd-resolved again.

Other systems

The docs might give the solution here (check /etc/resolv.conf to get your running network manager / DNS resolver).