Hello,
Thank you for your feedback.
I tested it locally and indeed be reproduced.
My test topology:
VPN server, AX1800:
VPN client, MT3000:
- When tunnel policy
To is All target, the DNS resolution from Pi-Hole works fine:
C:\Users\itwuh>nslookup www.qq.com
Server: console.gl-inet.com
Address: 192.168.18.1
Non-authoritative answer:
Name: ins-r23tsuuf.ias.tencent-cloud.net
Addresses: 121.14.77.221
121.14.77.201
Aliases: www.qq.com
C:\Users\itwuh>nslookup www.qq.com 192.168.6.118
Server: UnKnown
Address: 192.168.6.118
Non-authoritative answer:
DNS request timed out.
timeout was 2 seconds.
Name: ins-r23tsuuf.ias.tencent-cloud.net
Addresses: 121.14.77.201
121.14.77.221
Aliases: www.qq.com
C:\Users\itwuh>nslookup www.qq.com 10.0.0.1
DNS request timed out.
timeout was 2 seconds.
Server: UnKnown
Address: 10.0.0.1
Non-authoritative answer:
DNS request timed out.
timeout was 2 seconds.
Name: ins-r23tsuuf.ias.tencent-cloud.net
Addresses: 121.14.77.221
121.14.77.201
Aliases: www.qq.com
- When tunnel policy
To is 192.168.6.0/24 (VPN server router LAN subnet), the DNS resolution from Pi-Hole does not work:
C:\Users\itwuh>nslookup www.qq.com 192.168.6.118
DNS request timed out.
timeout was 2 seconds.
Server: UnKnown
Address: 192.168.6.118
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
*** Request to UnKnown timed-out
C:\Users\itwuh>nslookup www.qq.com 10.0.0.1
DNS request timed out.
timeout was 2 seconds.
Server: UnKnown
Address: 10.0.0.1
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
DNS request timed out.
timeout was 2 seconds.
*** Request to UnKnown timed-out
# without specified DNS server, request server should be used the WAN.
C:\Users\itwuh>nslookup www.qq.com
Server: console.gl-inet.com
Address: 192.168.18.1
Non-authoritative answer:
Name: ins-r23tsuuf.ias.tencent-cloud.net
Addresses: 121.14.77.221
121.14.77.201
Aliases: www.qq.com
Whether To is All target or 192.168.6.0/24, PC ping [pihole LAN IP] is reachable:
C:\Users\itwuh>ping 192.168.6.118
Pinging 192.168.6.118 with 32 bytes of data:
Reply from 192.168.6.118: bytes=32 time=100ms TTL=62
Reply from 192.168.6.118: bytes=32 time=351ms TTL=62
Reply from 192.168.6.118: bytes=32 time=100ms TTL=62
Reply from 192.168.6.118: bytes=32 time=81ms TTL=62
Ping statistics for 192.168.6.118:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 81ms, Maximum = 351ms, Average = 158ms
I submitted the issue to R&D for analysis. It may be that the DNS shunt design is like this, or it may be that there is a problem with DNS in the VPN policy.
When we confirm later, will update here.
Update:
We re-check the VPN rules again:
When tunnel policy To is 192.168.6.0/24 (VPN server router LAN subnet)
The meaning of this rule is that the domain/IP of the resource that needs to be accessed will only go to this VPN server/node, and DNS resolution does not belong to the "resource to be accessed".
Based on your description, I assume that you should want to access certain custom domain which goes to the subnet "10.10.10.0/24":
Please copy the custom domain list from the pihole and paste to the router VPN client tunnel rule "To", that make specific part go to the VPN tunnel.