[SOLVED] 2 pihole's dns server in my openwrt not work well [HELP] [SOLVED]

hi pals, i just finished installing my pihole with ubound in an instance on my proxmox server and connect it to my raspi openwrt´s router for all my network, also install gravity sync to synchronize all my black and white lists, domains, dns ´s, clients and other data with a 2nd instance of pihole also with unbound in another instance of my proxmox server, so that when for some reason the main pihole crashes or stops working; the secondary pihole works automatically and thus prevents my network from 'running out of internet'.

the problem I am having is that when testing, despite having added the secondary pihole to my raspi openwrt router, when I turn off the main pihole, the openwrt does not take the secondary pihole as the dns server so 'there is no internet throughout my network.

I don't think the problem is in any of the pihole's, but probably in the configuration in my openwrt.

Could someone help me figure out where I'm doing it wrong?

I leave a screenshot of: the main pihole configuration, the secondary pihole configuration and the openwrt configuration as well as others

pihole´s proxmox instances
main pihole


secundary pihole

pihole´s
main pihole


secundary pihole

pihole´s stats
main pihole


secundary pihole

pihole config´s
main pihole


secundary pihole

openwrt config: DHCP and DNS > General Settings > DNS Forwardings

openwrt config: Interfaces > WAN 1 > Edit > advanced settings > Used DNS server advertised by peer and Use custom DNS server

(note: something strange happens here, the fisrt time when i put the pihole ip x.x.x.39 at the beginning and the secundary pihole x.x.x.42, the network took the ip x.x.x.42 as the main dns server and the x.x.x.39 as the secundary)

openwrt config: Iterfaces > LAN > Edit > DHCP server > Advanced settings > DHCP options

windows config and ipconfig /all

I hope that someone who knows or who has experienced this before can help me and at the same time this thread can help others who may experience the same thing since I have searched for it on the net and I have not found anything similar, thanks

Looks like he got help on openwrt's forum and sorted it.
https://i.imgur.com/fGoi8Jb.jpeg

And it is!

in case someone has this problem the answer and solution is here

Thanks everyone, this thread has been resolved and can be closed.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.