Hello,
As the title suggests, I would like to be able to configure wireguard with bind9.
Backstory:
The setup started as follows: 1 Ubuntu VM on Proxmox running PiVPN and PiHole for Adblocking on 192.168.0.100. Everything worked well until I installed Bind9 and I noticed that ad-blocking was not working anymore, due to both DNS servers running on the same port.
I then decided to create a new Ubuntu VM in order to host the Bind9 server - 192.168.0.101. I should mention that rather than changing the DNS servers within the router setting, I’m maintaining them individually on each of the devices I’m using. So, after creating the new server, the connection should be as follows:
Device -> PiVPN+PiHole (192.168.0.100) -> BIND9 (192.168.0.101)
Resolv conf has been updated and name resolution works from the .100 server.
I also have Webmin installed on both servers. Prior to using the second server, I was able to access the shortname https://ubuntu-pi:10000 - 192.168.0.100 both locally and by using the VPN. After installing BIND9 on the new server and fiddling around with some settings (adding the bind9 server as upstream DNS and unticking the first 2 boxes as suggested by another reddit post)) I am now able to access my webpages using the full FQDN, ex: https://ubuntu-pi.home.address:10000 .
I have also changed my PCs DNS server to 192.168.0.100 and added .home.address to search domains, which used to work before this transition; but now I get this when trying to resolve from CMD:
When trying to resolve the PiHole+PiVPN server or any other servers defined in bind:
PS C:\Users\me> nslookup ubuntu-pi
Server: pi.hole
Address: 192.168.0.100
*** pi.hole can't find ubuntu-prod: Non-existent domain
When trying to resolve the BIND9 server:
PS C:\Users\me> nslookup ubuntu-bind
Server: pi.hole
Address: 192.168.0.100
Non-authoritative answer:
Name: ubuntu-bind.cam14.local
Address: 192.168.0.101
Is there any way to make name resolution work as it was working previously, both locally and by using the wireguard VPN? Also is it possible to somehow use both services on one server?
Thank you!

