Windows 11 - WSL 2 - Custom DNS works but

The custom WSL ethernet adapter is hidden with Windows 11. One of the workarounds I did back in Windows 10 was to update that adapter’s DNS to 127.0.0.1 and Custom DNS worked even with a VPN connection. Fast forward to Windows 11 and the WSL adapter is hidden and unless the WSL distro has been assigned one of the VPN’s DNS addresses, nothing gets out of the container. I have custom forwarders added to bind in the devilbox, but even from inside the bind container, nothing can get out. Interestingly enough, when starting PHP and doing apt update, that part works perfectly.

2023-01-30 20:46:01 31-Jan-2023 01:46:01.078 resolver priming query complete: ncache nxdomain
2023-01-30 20:46:01 31-Jan-2023 01:46:01.388 client @0x7f776d9612d0 172.16.238.1#38413 (settings-win.data.microsoft.com): query: settings-win.data.microsoft.com IN A + (172.16.238.100)
2023-01-30 20:46:01 31-Jan-2023 01:46:01.388 client @0x7f776d85c220 172.16.238.1#49848 (settings-win.data.microsoft.com): query: settings-win.data.microsoft.com IN AAAA + (172.16.238.100)
2023-01-30 20:46:01 31-Jan-2023 01:46:01.388 client @0x7f776d7ea180 172.16.238.1#60679 (settings-win.data.microsoft.com): query: settings-win.data.microsoft.com IN A + (172.16.238.100)
2023-01-30 20:46:02 31-Jan-2023 01:46:02.218 client @0x7f776d7e9360 172.16.238.1#46247 (mobile.events.data.microsoft.com): query: mobile.events.data.microsoft.com IN A + (172.16.238.100)
2023-01-30 20:46:02 31-Jan-2023 01:46:02.218 client @0x7f776d7e3370 172.16.238.1#37271 (mobile.events.data.microsoft.com): query: mobile.events.data.microsoft.com IN AAAA + (172.16.238.100)
2023-01-30 20:46:02 31-Jan-2023 01:46:02.218 client @0x7f776d7e21d0 172.16.238.1#36492 (mobile.events.data.microsoft.com): query: mobile.events.data.microsoft.com IN A + (172.16.238.100)
2023-01-30 20:46:02 31-Jan-2023 01:46:02.238 resolver priming query complete: ncache nxdomai

is what shows on the BIND container log.

So the easy fix for Windows 10 is no more in Windows 11 and I wonder if there is anyone out there experiencing this and what, if anything, have they found that works.

From inside the bind container:
image

I also am having issues getting auto dns setup for host files on Windows 11 using WSL2 and Ubuntu 22.04. Editing the windows hosts file manually doesn’t work either.