Closed marcosscriven closed 8 years ago
Hi incidentally I noticed the same issue. Try upgrading to the version of ocserv in master 0.10.9-4 as well as vpnc-script 20150116-3. There dns information will pass through if you set split_dns=1 to ocserv's config file or if you set default_domain to your domain name.
The issue is that dnsmasq treats the servers in resolv.conf as equal and can query any of them. Thus is you query myhost.lan and it goes through the externals dnsmasq will remember that this host doesn't exist. That is solved with split-dns information which will result to a special setting in dnsmasq which will tell it, that for .lan query this particular server.
It should work with the latest updates. Please reopen if not.
When one starts openconnect on OpenWRT, it duly adds DNS entries:
However, unless I then manually remove the first lan DNS entry, hostnames on the VPN won't resolve.
Wondering if I'm missing a setting somewhere? My guess is dnsmasq is interfering with this somehow.