Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Redirecting DNS to local Adguard Home and when local Adguard Home is unavailable

    Scheduled Pinned Locked Moved DHCP and DNS
    7 Posts 2 Posters 609 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fjmp24
      last edited by

      Hi,

      I have a question that may be silly.
      How to configure pfsense so that my devices use my local Adguard Home as DNS server and that if my local Adguard Home is unavailable my devices can again resolve my local hostnames ?

      Thanks

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @fjmp24
        last edited by

        @fjmp24 Run 2 servers if your worried about 1 failing ;)

        I never understood this in a home setup.. I point pretty much everything to my pi first, it then forwards to pfsense it looks local resources, and then would resolve public stuff..

        I run pihole on a old 3B pi, if it failed and I could not get it working right away.. Then I would just change dhcp to point to say pfsense directly... or I would fire up a copy of pihole as a vm or docker and use the old pi's IP, etc.

        Do you have pfsense running in HA pair? Are your switches in a stack? So one could fail and you have all devices connecting 1 port on each switch on the stack..

        Do you have spare switch just on the shelf, what about your AP, do you have spares - what if they fail.

        Why would you be concerned with this adguard failing - does it suck that bad that it fails all the time?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        F 1 Reply Last reply Reply Quote 0
        • F
          fjmp24 @johnpoz
          last edited by

          @johnpoz My Adguard runs in a docker container which runs on a proxmox.

          When I restart my promox, Adguard is not accessible by my devices so I can't use my local hostnames to connect me my proxmox and to launch Adguard

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @fjmp24
            last edited by

            @fjmp24 well use its ip, set it auto start.. Haven't used proxmox in a while.. But I find it hard to believe you can not setup VMs or dockers to auto start.. When I was runing it, I know I had VMs on it to auto start when the box booted..

            Or you could just create a host record on your PC so you could access proxmox by its IP.. Are you saying it doesn't have the same IP when it restarts?

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            F 1 Reply Last reply Reply Quote 0
            • F
              fjmp24 @johnpoz
              last edited by fjmp24

              @johnpoz My devices have the same IP and it is possible to automatically start docker on proxmox.

              But, for example another problem, my Adguard Home is running in a docker container which is running in an LCX container. In which other containers runs and that use my NAS via samba. I uses host name for samba mount.

              The solution could be to run Adguard into another LCX container. If there is not another solution.

              I could prefer that my devices request to pfsense and pfsense request to Adguard for WAN resolutions.

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @fjmp24
                last edited by

                @fjmp24 well if clients are asking pfsense, then have pfsense resolve your local stuff.. Problem solved, just have no wan resolution until your adguard is up.

                But something that network is dependent on like dns, I would run that on its own hardware - adguard will run on pi.. Very low power, doesn't really ever need to even be rebooted other than kern updates. And even then its very short..

                And pis are cheap!! could run on a pi zero for example..

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                F 1 Reply Last reply Reply Quote 0
                • F
                  fjmp24 @johnpoz
                  last edited by

                  @johnpoz It's true that it is not possible to redirect a dns request from a network to a device belonging to that network ?

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.