Guinness2702 Hi all, I'm trying to set up my vpn to route everything through my server. I've previously had this working for a long time without the vpn being the default route. I am trying to change this to use the VPN as the default route. All seems to have gone well except that I have one problem. I can't get the DNS to update. I have my real network eth0, with DNS 10.11.12.13. I set option "dhcp-option DNS 8.8.8.8" in the client config. When I start the vpn, everything works correctly, except, when I look at traffic going out of the *server*, it is trying to send DNS to 10.11.12.13. When I look at the network configuration of eth0, I see:- root@Host:/etc/openvpn# nmcli dev list iface eth0 | grep IP4.DNS IP4.DNS[1]: 10.11.12.13 IP4.DNS[2]: <another dns> IP4.DNS[3]: <another dns> As a result, all of my DNS lookups fail. Note that, if I manually set 8.8.8.8 in /etc/resolv.conf, everything works, so I'm sure that the problem is simply that the DNS is not being set up correctly. I guess I could script something up update resolv.conf, but is this really the best way? Should I not expect the dhcp-option to set up the DNS correctly. Is there another/better way of overriding this DNS, via my client config file? Thanks!
Traffic You should find a script called update-resolv-conf in /etc/openvpn To your client config add: up /etc/openvpn/update-resolv-conf down /etc/openvpn/update-resolv-confthis will apply the pushed DNS servers for you.