Skip to main content

Configuring a Basic DNS Server Using AdGuard

As building many labs in my home environment, I usually need DNS server which is easily deployed. Knowing that there are many alternatives, if just in case of A records to be created, I leverage from AdGuard which is really helpful.

I am running AdGuard on a Docker container to simplifying the installation process, I recommend this way of setup to everyone. It is clearly described in the Docker Hub , so you can customize your setup here by following the docker run parameters for the AdGuard container.

Assume we have installed the AdGuard successfully and it's homepage is accessible from your desktop. When logged in you should be able to see the Dashboard of AdGuard. Here below you may see a sample of AdGuard of my setup.

AdGuard Home View


or

AdGuard Home View - 2


To be able to setup a DNS server on AdGuard, which is pretty easy. First you need to navigate to the "Custom Filtering Rules" page by clicking "Filters" from the page header.

From "Filters" to "Custom Filtering Rules"


From the "Custom Filtering Rules" page, you will need to write your A records as if you are writing to /etc/hosts file.

  1. Each line holds one DNS A record
  2. Always start with IP Address, then names.
  3. This is only applicable for Forward DNS A Records.

Fill the textbox for DNS Records


You can run checks from your desktop, using legacy nslookup tool.

DNS Lookup Query with nslookup


Thanks for reading!



Comments