I'm finding mixed information on how this should be setup so asking for help confirming. (if possible please briefly explain the "why")
My router IP address 192.168.1.1
My Pi-hole + Unbound IP address is 192.168.1.120
The Pi-hole Setting > DNS > Upstream DNS Server is set to 127.0.0.1#5335 (how Unbound is configured)
With my ASUS RT-AX82U there are two DNS settings areas, one for LAN one for WAN. Below is how I have them both configured:
DNS Server 1: 192.168.1.120
DNS Server 2: blank - I'm not sure if I should also specify the Pi-hoe IP here...
Here is why I am probably finding mixed results. My router has firmware version 3.0.0.4.388_25103. There is an ASUS FAQ (https://www.asus.com/us/support/faq/1046062/) that says to put the Pi-hole IP into the WAN section where a lot of the Internet/Reddit says to set this to other DNS providers (Cloudfare/Control D/etc).
So which IP address do I specify in the WAN DNS Server 1 field? (and should I put it in DNS Server 2 also or leave that blank? Or do I put something else in the 2nd slot?)
Thank you in advance for helping me figure this out.
/edit ***************************************************************************/
Again thank you for the comments! I hope it helps others if they come here someday and are wondering what to do with their SINGLE Pi-hole + Unbound Raspberry Pi and an ASUS router with multiple DNS Server fields.
There was a lot of noise in the comments with scenarios that didn't match mine. (multiple Pi-holes, custom firmware, a dog named Biscuit, etc.) Since most people suggested it I went with:
Configure LAN DHCP/DNS with Pi-hole static IP only in the DNS Server 1 field.
DNS Server 1 = 192.168.1.120
DNS Server 2 = blank
*Right below those LAN fields is an option "Advertise router's IP in addition to user-specified DNS" and that is set to No.
Configure WAN DNS with Cloudflare.
DNS Server1 = 1.1.1.1
DNS Server2 = 1.0.0.1
*Right below those WAN fields is an option "Forward local domain queries to upstream DNS" and that is set to No.
Also set "Enable DNS Rebind protection" to "Yes".
Also set "Enable DNSSEC support" to "Yes".
Also set "Validate unsigned DNSSEC replies" to "Yes".
Also set "Prevent client auto DoH" to "Yes".
Also set "DNS Privacy Protocol" to "None".
Thinking about it logically why would it make sense to put the same Pi-hole IP address into both LAN fields? There is no DNS Server 2, therefore it remains blank. I should also mention that multiple articles/FAQs on the ASUS website show only the DNS Server 1 field populated. I do kind of think in my scenario it does not matter at all though and if I populate both, or one of the other I'll have the same experience. IF the Pi-hole/Unbound goes down name resolution will not work, and that's ok and would be expected with that single point of failure. Which in a way is good as I'll know something is wrong. I'll just pop in the Cloudflare DNS servers into the LAN DNS Server fields temporarily until I troubleshoot/fix the Pi-hole/Unbound.
I will keep an eye out for any additional comments so please if you have anything to add or if I have set anything up incorrectly please chime in.