Build adguard home on Cloud Server


AdGuardHomeAdguard home is an open source DNS server version of adguard, a famous advertisement interceptor provider. Adguard home blocks advertising and tracking related domain names, and you don’t need to install any client software. Adguard home works by intercepting ads on Web pages during DNS domain name resolution.
In short, adguard home is an open source public DNS service that supports advertising filtering and parental control, just like Google’s public DNS service Adguard home also supports DNS over TLS and DNS over HTTPS.

major function

  • Block ads everywhere
  • Pay attention to privacy protection
  • Family protection model
  • Custom filtering rules

Installation preparation

  • A cloud server

setup script

First enter the cloud server, and then refer toOfficial installation documentation, download the corresponding installation version.
To view the version, you can use the command:uname -aMy return is:Linux VM-0-14-debian 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
So download the 64 bit version


tar -zxvf AdGuardHome_linux_amd64.tar.gz

#Enter the adguardhome directory
cd AdGuardHome

#Start adguard home
./AdGuardHome -s install

//Access IP: 3000 to configure the adguard home

to configure

Follow the settings all the way and remember your password and port.
Configuration page

In this way, the installation and configuration are completed.


Click settings, DNS settings
Set up the upstream server, you can set it according to your own needs

Click apply to save the configuration.
otherDNS service settingsYou can set it according to your needs. Here I set * * speed limit * * to 0 and turn it on at the same timeEDNSYou need to click Save again. Other configurations can be studied by yourself.
Point filter settings, you can add your own filter needs, two recommended

//Chengfeng advertising filtering rules

// EasyList China+EasyList
//A collection rule, a collection of easylist and other services

In addition, it can be configured in * * settings encryption settings * *httpsEncryption, as needed to solve their own.
In addition, boot can be added.

systemctl enable AdGuardHome

At the end of the paper, we will post several admonitory commands

#Start the adguardhome service
./AdGuardHome -s start

#Stop the adguardhome service
./AdGuardHome -s stop

#Restart the adguardhome service
./AdGuardHome -s restart

#View adguardhome service status
./AdGuardHome -s status

#Uninstall the adguardhome service
./AdGuardHome -s uninstall

At the same time, there is a yaml configuration file in the folder where you unzip the installation. You can also modify the contents through the configuration file

It should be noted that it is better not to access through port 53, or there may be a risk of being warned by the operator (private DNS is forbidden explicitly). However, private use through other ports is generally nothing


This work adoptsCC agreementThe author and the link to this article must be indicated in the reprint