Hi everyone !
I need your help to access to resolve domains with my DNS server through OpenVPN.
I have a Raspberry Pi which contains an OpenVPN server and a DNS server.
-----------------------------
My internal network :
- ISP router : 192.168.0.1
- NAS : 192.168.0.11 (called nas.alex thanks to my DNS server)
- RaspberryPI (OpenVPN server & BIND DNS Server) : 192.168.0.10 / 10.8.0.1
- an external device connected via OpenVPN : 10.8.0.6
-----------------------------
With my external device (through VPN) - When I try to reach an internal domain it's working perfectly :
nslookup nas.alex
Server: 192.168.0.10
Address: 192.168.0.10#53
Name: nas.alex
Address: 192.168.0.11
It is also working if I use 10.8.0.1 as DNS server IP :
nslookup nas.alex
Server: 10.8.0.1
Address: 10.8.0.1#53
Name: nas.alex
Address: 192.168.0.11
With my external device (through VPN) - When I try to reach an external domain it is not working :
nslookup google.com
Server: 192.168.0.10
Address: 192.168.0.10#53
** server can't find google.com: REFUSED
And finally if i use a external DNS server (like google 8.8.8.8), nslookup google.com works
Do you have any ideas to help me ?