Setting Multiple DNS IPs in AdGuard Home DHCP

By default, the AdGuard Home Web UI allows you to set only one DNS server for your DHCP clients. If you have a secondary DNS (like a backup instance), you must add it manually via the configuration file.

Steps:

1. Open your configuration file (path may vary depending on your setup):

nano /data/adguard/AdGuardHome.yamlCode language: Bash (bash)

2. Find the “dhcp:” section and look for “options:

3. Add DHCP Option 6 (DNS Servers) followed by your IP addresses separated by a comma:

dhcp:
  ...
  dhcpv4:
    options:
      - "6 ips 192.168.4.12,192.168.3.142"Code language: YAML (yaml)

Restart AdGuard Home to apply the changes.

Now, when your clients request an IP via DHCP, they will automatically receive both DNS server addresses for better redundancy.


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.