Configuring DNS Chain and IPv6-Only Network in OpenWRT

Hey everyone,

I'm looking to set up my OpenWRT router to achieve a couple of specific tasks and could use some guidance:

  1. DNS Server Daisy Chaining: I want to set up a chain of DNS servers starting with Quad9 and then routing through AdGuard. However, I'm open to configuring it in reverse order if that's more practical. Could someone walk me through the steps to accomplish this on my OpenWRT router?
  2. IPv6-Only Network: My ISP only provides IPv4 addresses, but I prefer to have an IPv6-only network within my home. How can I configure my OpenWRT router to achieve this setup?

I've tinkered around with the settings a bit, but I'm not quite getting the desired results. Any help or pointers to relevant documentation would be greatly appreciated.

Thanks in advance!
This is the image of available storage in my router
https://imgur.com/a/kG42OCl

Hi @Unstuck5499,

if your ISP is IPv4 only, you would configure your client to only use your Adguard and only conditionally forward reverse lookups and local domains to the OpenWrt dnsmasq.

Running IPv6-only or IPv6-mostly, enable Jool as a NAT 64 gateway according to this tutorial NAT64 with Jool option 2.

Use DHCP option 108 and PREF64 and devices capable of running IPv6-only will do. The rest will remain dual stack.

If you have further questions, please do not hesitate to ask.

Should I use this for DNS Adblock-fast: ad-blocking service for dnsmasq, smartdns and unbound - #15 by stangri
how do I do DNS masking from My ISP?
and how can i setup this (if your ISP is IPv4 only, you would configure your client to only use your Adguard and only conditionally forward reverse lookups and local domains to the OpenWrt dnsmasq.) any documentation or youtube video because i am new to all of this.

Openwrt need to have some DNS servers configured to bootstrap after a reboot.

Therefore a few unencrypted queries need to be made:
https://openwrt.org/docs/guide-user/base-system/dhcp_configuration#race_conditions_with_sysntpd

I'm running Adguard on a separate device and handout/distribute it's IP addresses by DHCP option or Router Advertisment (RA).

In Adguard, I conditionally forward the Reverse DNS requests for the internal domain and hostname resolution to dnsmasq (DNS server on OpenWrt) to the router.

Hope this helps

Bro @goetz , and have started using OpenWrt since june 2024.
Apologies in advance for any erroneous or obvious points and terms I may discuss here.
bro what ever you are saying I only have ISP(modem) ------> router. that's all
so what steps I should take....

I'd recommend https-dns-proxy and luci-https-dns-proxy. You can very easily select multiple providers to use to encrypt your DNS requests on your router so that your ISP cannot snoop/alter your DNS requests or sell your DNS requests history.

1 Like

how to install shell in lucy web ?
even after https-dns-proxy and luci-https-dns-proxy and adguard and quad9 I am still seeing ads....
and also because of chainging dns the connection is loosing manny times in the local network