OpenVPN DNS Servers are Ignored

Hello, I’m using GL iNet 4G Smart Router
The problem is that DNS servers pushed by OpenVPN are ignored:

nslookup test.lan
Server:   127.0.0.1
Address:  127.0.0.1#53

*** Can't find home.lan: No answer
*** Can't find home.lan: No answer

but my VPN DNS works ok:

nslookup  test.lan 10.123.123.1
Server:   10.123.123.1
Address:  10.123.123.1#53

Name:      test.lan
Address 1: 192.168.77.1
*** Can't find test.lan: No answer

I also checked dnsmasq process:

 /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.cfg01411c -k -x /var/run/dnsmasq/dnsmasq.cfg01411c.pid

and the config file looks like this:

# auto-generated config file from /etc/config/dhcp
conf-file=/etc/dnsmasq.conf
dhcp-authoritative
domain-needed
localise-queries
read-ethers
expand-hosts
bind-dynamic
local-service
domain=local
server=/local/
dhcp-leasefile=/tmp/dhcp.leases
resolv-file=/tmp/resolv.conf.vpn
stop-dns-rebind
rebind-localhost-ok
dhcp-broadcast=tag:needs-broadcast
addn-hosts=/tmp/hosts
conf-dir=/tmp/dnsmasq.d
user=dnsmasq
group=dnsmasq




bogus-priv
conf-file=/usr/share/dnsmasq/rfc6761.conf
dhcp-range=set:lan,192.168.81.100,192.168.81.249,255.255.255.0,12h

file /tmp/resolv.conf.vpn:

nameserver 10.123.123.1
nameserver 10.123.123.1

Thanks, Slava

Hi Slava,
Can you test with another domain name?

nslookup test.lan 10.123.123.1
Server: 10.123.123.1
Address: 10.123.123.1#53

Name: test.lan
Address 1: 192.168.77.1
***** Can’t find test.lan: No answer** #it means not work.

Hi, @lancer

 nslookup google.com 10.123.123.1
 Server:		10.123.123.1
 Address:	10.123.123.1#53

 Name:      google.com
 Address 1: 173.194.220.101
 Address 2: 173.194.220.113
 Address 3: 173.194.220.139
 Address 4: 173.194.220.100
 Address 5: 173.194.220.102
 Address 6: 173.194.220.138
 Address 7: 2a00:1450:4010:c09::8a 

and

 nslookup google.com
 Server:		127.0.0.1
 Address:	127.0.0.1#53
 
 Name:      google.com
 Address 1: 173.194.220.138
 Address 2: 173.194.220.102
 Address 3: 173.194.220.100
 Address 4: 173.194.220.139
 Address 5: 173.194.220.113
 Address 6: 173.194.220.101
 Address 7: 2a00:1450:4010:c09::8a

Turns out here is the solution: