My ISP assigns me a /64 prefix for ipv6 so I’m forced to use ipv6 relay mode, if I disable peer dns and use custom dns for wan and wan6, I’m still seeing isp dns in dnsleaktest.
I realised it is my dhcp assigned dns for v6 that’s causing these issues. So I tried changing them by doing
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'relay'
option ra 'relay'
option ndp 'relay'
list dns ‘2606:4700:4700::1112’
You can run an IPv6 network with just a /64 prefix without requiring relay mode. Are you planning to run multiple networks? This is a legitimate use case, but I just want to keep things clear.
If you genuinely need a smaller prefix, first see if you can configure your router to just ask the ISP for it. Put the router back to its default configuration and try:
Go to LuCI → Network → Interfaces → Edit WAN6.
Ensure "Request IPv6-address" is set to "try".
Change "Request IPv6-prefix of length" to "56".
Restart the WAN6 interface.
If this doesn't work, try again with prefix set to 60.
Specifying a custom dns server belongs in the wan(6) block in /etc/config/network and nowhere else. Also if the ISP DNS is suspect you'd want to set peerdns 0 in that wan section so that the ISP's DHCP advertised DNS server is not installed into the list.
So the ISP doesn't delegate any IPv6 prefixes? You're all on a switched network? Although I've heard this is how it's sometimes done in virtual private servers, I've never seen this for ISP deployments.
Can you put your router back into its default configuration and connect it to your ISP as normal? Give it a few minutes and take a look at the LuCI homepage. OpenWrt has had working IPv6 support for years now, so it should pick up any delegated prefixes.
If the ISP is delegating you a prefix, you should see "Prefix Delegated" in addition to "Address" in the "IPv6 Upstream" box. Can you check this for us?
It would be nice to clarify what is in place here:
ISP really gives your OpenWrt router a single /64 prefix
OR
ISP assigns something to your ONT that in turn gives OpenWrt router a single /64 prefix
Then I have reasons to believe that the requests were answered by the local Cloudflare servers ("Bombay").
Check with logread | grep nameserver if you have any other server mentioned.
If this is the case with this ISP then the difference is moot. If the ONT can be put into bridge mode then of course I would recommend this course of action, but if what @Sid said is true then there are effectively no IPv6 prefixes that can be used here.
Tue Mar 5 03:55:37 2024 daemon.info dnsmasq[1]: using nameserver 1.1.1.1#53
Tue Mar 5 03:55:37 2024 daemon.info dnsmasq[1]: using nameserver 2606:4700:4700::1112#53
When I run dnsleaktest I see CF servers as expected, but also ISP dns servers.
That was my guess. If this is the case you can try using encrypted DNS communication. But first check if your PC that was used for test does (not) have another server configured.
My personal choice is DNS-over-TLS using stubby.