No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
hmage Merge pull request #25 in DNS/adguard-dns from feature/331 to master
* commit 'df12038f33b7acf6a3e9329054f1b5ad4cb02cd8':
  Add refresh button to querylog page
Latest commit a2f06aa Sep 17, 2018

Build Status

Self-hosted AdGuard DNS

AdGuard DNS is an ad-filtering DNS server with built-in phishing protection and optional family-friendly protection.

This repository describes how to set up and run your self-hosted instance of AdGuard DNS -- it comes with a web dashboard that can be accessed from browser to control the DNS server and change its settings, it also allows you to add your filters in both AdGuard and hosts format.

If this seems too complicated, you can always use AdGuard DNS servers that provide same functionality —


Go to and download the binaries for your platform:


Download file AdguardDNS_*_darwin_amd64.tar.gz, then unpack it and follow how to run instructions below.


Download file AdguardDNS_*_linux_amd64.tar.gz, then unpack it and follow how to run instructions below.

How to build your own


You will need:

You can either install it from these websites or use if you're on Mac:

brew install go node yarn


Open Terminal and execute these commands:

git clone
cd AdguardDNS

How to run

DNS works on port 53, which requires superuser privileges. Therefore, you need to run it with sudo:

sudo ./AdguardDNS

Now open the browser and point it to http://localhost:3000/ to control AdGuard DNS server.

Running without superuser

You can run it without superuser privileges, but you need to instruct it to use other port rather than 53. You can do that by opening AdguardDNS.yaml and adding this line:

  port: 53535

If the file does not exist, create it and put these two lines down.


You are welcome to fork this repository, make your changes and submit a pull request —

Reporting issues

If you come across any problem, or have a suggestion, head to this page and click on the New issue button.