Installation AdGuard - s-allius/tsun-gen3-proxy GitHub Wiki

Installation and Configuration of the AdGuard

Summary

Install and configure AdGuard Home on Home Assistant. Change the DNS server settings in the FRITZ!Box to point to AdGuard Home. Add logger.talent-monitoring.com as a DNS rewrite in AdGuard and as an exception in the DNS Rebind Protection settings of the FRITZ!Box. Test the setup with tools like nslookup or AdGuard's Query Log.


1. Install AdGuard Home on Home Assistant

  1. Install AdGuard Home:
    • Open Supervisor in Home Assistant.
    • Go to the Add-on Store and install AdGuard Home.
  2. Start AdGuard Home:
    • Start the add-on and open its web interface (http://<Home Assistant IP>:3000).
  3. Configure AdGuard:
    • DNS Rewrites:
    • Navigate to Settings > DNS settings > DNS rewrites.
    • Add the following rewrite:
      • Domain name: logger.talent-monitoring.com
      • IP address: The local IP address of your Home Assistant, e.g., 192.168.178.50.

2. Find the AdGuard IP Address

  • Determine the local IP address of the device running Home Assistant (e.g., 192.168.178.50).
  • This IP will be used as the DNS server in the FRITZ!Box configuration.

3. Configure the FRITZ!Box to Use AdGuard as DNS Server

  1. Access the FRITZ!Box:
    • Open http://fritz.box in a browser and log in.
  2. Change DNS Server Settings:
    • Navigate to Internet > Access Data > DNS Server.
    • Select Use other DNSv4 servers.
    • Enter the AdGuard IP address:
      • Primary DNS server: 192.168.178.50 (AdGuard IP).
      • Secondary DNS server: Leave blank or enter the same IP.
    • Save the changes.
  3. IPv6 DNS (Optional):
    • If you use IPv6, under Use other DNSv6 servers, enter the IPv6 address of AdGuard.

4. Configure DNS Rebind Protection in the FRITZ!Box

  1. Go to Home Network > Network > Network Settings tab.

  2. Scroll down to the DNS Rebind Protection section.

  3. Add an exception for the domain:

    logger.talent-monitoring.com
    
  4. Save the changes.


5. Test the Configuration

  1. Test DNS Resolution:
    • On a device in the network:
      • Open a terminal or command prompt and run:

        nslookup logger.talent-monitoring.com
        
      • The response should return the IP address of Home Assistant (e.g., 192.168.178.50).

  2. Check AdGuard Logs:
    • Open AdGuard Home and go to Query Log.
    • Verify that queries to logger.talent-monitoring.com appear and are resolved correctly.