All the traffic does not go thorough OpenVPN DNS

Hi, on my Xiaomi 4A I have OpenWrt-21.02.
When the OpenVPN connection is started, all the traffic will not go through the VPN DNS, for example here are 2 traceroutes:

traceroute to openwrt.org (139.59.209.225), 30 hops max, 38 byte packets
 1  10.8.0.1  203.644 ms
 2  xx.xx.xx.xx  204.651 ms [VPN Server Public Add]
 3  107.173.198.13  205.309 ms
 4  10.8.12.33  265.585 ms
 5  10.8.40.221  205.861 ms
 6  62.115.146.150  205.016 ms
 7  62.115.118.122  216.754 ms
 8  62.115.140.97  216.686 ms
 9  80.91.254.15  293.640 ms
10  62.115.113.21  289.358 ms
11  62.115.117.193  305.522 ms
12  62.115.44.250  290.884 ms
13  138.197.249.216  289.716 ms
14  62.115.44.254  315.362 ms
15  138.197.250.140  310.754 ms
16  *
17  138.197.250.156  326.277 ms
18  139.59.209.225  311.792 ms
traceroute: bad address 'www.facebook.com'

It is surprising when the VPN is running and my public IP is my VPN server IP, still, the Name Server is 127.0.0.1!!!!

Server:		127.0.0.1
Address:	127.0.0.1#53

Name:      openwrt.org
Address 1: 139.59.209.225
Server:		127.0.0.1
Address:	127.0.0.1#53

*** Can't find facebook.com: No answer
Name:      facebook.com
Address 1: 10.10.34.35

How Can I solve this issue?
Thank you in advance

1 Like

Dnsmasq running as a local DNS forwarder is normal.
Disable peer DNS and configure a public DNS provider.

1 Like

Thanks for the reply;
I unchecked the peer DNS in "Advance Setting" tab of luci OpenVPN interface and set 10.8.0.1 as the DNS server.
Afterward, I lost the internet connection :disappointed_relieved:

Use a public resolver such as Google DNS, or switch DNS dynamically.

1 Like

@vgaetera
Appreciated :pray: :pray: :pray: :pray: :pray:

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.