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