DNS-Over-HTTPS with DD-WRT


#1

Expected Behaviour:

I want use DNS-Over-HTTPS like explained here, and I actually use DD-WWRT configured as explained here (Method 2 with dhcp-option).

But, both needs to set Pi-Hole custom DNS (“Custom 1 (IPv4)”) to a different value:

  • router IP for DD-WRT
  • 127.0.0.1#5053 for DNS-Over-HTTPS

How can I combine the both ?

I don’t understand exactly why DD-WRT router IP needs to be set as custom DNS in method 2, so I am not sure I can overwrite it with 127.0.0.1#5053 without issue.


#2

The reason it says to use the router’s IP is so you can get local hostname resolution. You can use the conditional forwarding feature in the settings page to forward local domains to the router for resolution.


#3

Thanks.

To summary:

  • 127.0.0.1#5053 => Custom DNS
  • Router IP => Conditional forwarding

I am not on development branch but on master (I don’t know how stable is the dev branch).
I see a “CONDITIONAL_FORWARDING” option in “/etc/pihole/setupVars.conf”

Is equivalent to set it to “true” and adding following in file ?
CONDITIONAL_FORWARDING_IP=Router IP
CONDITIONAL_FORWARDING_DOMAIN=Domain name on router

(Values founds on GitHub code.)


#4

Conditional forwarding is only in FTLDNS and newer.


#5

OK, thanks. I’ll wait the release to use it. :slightly_smiling_face:


#6

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