Posted: Thu Nov 25, 2021 5:39 Post subject: [SOLVED] Primary DNS Pi-hole, router DNS secondary?
With the router (r47618) running DHCP, SmartDNS (to encrypt DNS), and ad-blocking with dnsmasq, and a Pi-hole behind the router, I would like DHCP to assign the Pi-hole as primary DNS and the router as secondary DNS. But the only DNS that DHCP assigns is the router. Otherwise, DNS generally seems to work as desired.
Basic Setup:
Ignore WAN DNS: enabled
Shortcut Forwarding Engine: CTF
Flow Acceleration: CTF & FA
STP: Disable
Local DNS: Pi-hole
Static DNS 1: Pi-hole
Static DNS 2: router
Use DNSMasq for DNS: enabled
DHCP-Authoritative: enable
Forced DNS Redirection: enabled
Services:
Several static licenses (but not so many that it breaks the UI--a known issue?)
Dnsmasq: enabled
The Pi-hole's only upstream DNS is the router.
My partial workaround, where possible, is to set static IPs.
Joined: 31 Jul 2021 Posts: 2146 Location: All over YOUR webs
Posted: Thu Nov 25, 2021 7:05 Post subject:
Hello @Particle Man
Just would like more information on your claim regarding
Quote:
Several static licenses (but not so many that it breaks the UI--a known issue?)
What exactly breaks (screenshot would help)?
How many static IP assignments does that take in order to reproduce?
Which firmware version is this observed on?
Is it reproducible on all current firmware versions as well as older versions than 3 months?
Regarding Static DNS 2: router I presume you mean the router IP? have you enabled No DNS Rebind in Services > Services tab?
This likely also limits the number of static leases that can be set via the webUI (?). I was trying to find a ticket or thread or post that I remember seeing that only so many static leases can be entered via webUI, but it's not materializing. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
"dhcp-option=6,[primary DNS IP],[secondary DNS IP]" seems to have done the trick, assigning DNS as desired.
So, I've since reverted Local DNS and Static DNS 1 and 2 to 0.0.0.0. (Static DNS 2 as the router IP was ignored, anyway.)
Otherwise, No DNS Rebind is disabled (enabling it didn't seem to help), and the router is (still) ad-blocking because the router is secondary/fallback DNS.