Redirecting DNS to local Adguard Home and when local Adguard Home is unavailable
-
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
-
@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?
-
@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
-
@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?
-
@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.
-
@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..
-
@johnpoz It's true that it is not possible to redirect a dns request from a network to a device belonging to that network ?