Skip to content

Instantly share code, notes, and snippets.

@butageek
Created February 17, 2022 01:09
Show Gist options
  • Save butageek/22f9f6de0f8b5284175e7242a51e66f4 to your computer and use it in GitHub Desktop.
Save butageek/22f9f6de0f8b5284175e7242a51e66f4 to your computer and use it in GitHub Desktop.
Fix "address already in use" error when install AdGuard Home on Ubuntu Server

Create adguardhome.conf file

sudo mkdir /etc/systemd/resolved.conf.d
cd /etc/systemd/resolved.conf.d
sudo vim adguardhome.conf

Add following content into adguardhome.conf file:

[Resolve]
DNS=127.0.0.1
DNSStubListener=no

Create new config file link and restart service

sudo mv /etc/resolv.conf /etc/resolv.conf.backup
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo systemctl reload-or-restart systemd-resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment