Page 1 of 1

restart of openvpn connection changes the namespace

Posted: Thu May 31, 2018 10:54 pm
by puneet
Hi,

I'm running openvpn client on Ubuntu 18.04
When I restart the openvpn connection from client side

Code: Select all

 sudo service openvpn restart
it changes the namespace entry on
cat /etc/resolv.conf
to
nameserver 127.0.0.53
regardless of what option I picked on server UI:
  • Do not alter clients' DNS server settings
  • or Have clients use the same DNS servers as the Access Server host
  • or even specified the specified the DNS IP under "Primary DNS Server"
anyone know what might be causing this issue (I'm not sure if its openvpn setting or ubuntu 18.04)...?

Thank you,
_Puneet

Re: restart of openvpn connection changes the namespace

Posted: Sat Jun 02, 2018 6:34 am
by novaflash
OpenVPN open source in Linux doesn't even touch the DNS settings unless you specifically add an up and/or down script to handle DNS servers pushed by the server. So from that alone, I'm pretty sure this issue has nothing to do with OpenVPN at all. Most likely, there is some sort of network manager program running in your Linux OS that notices changes to the network interfaces and based on that tries to manage and fix network settings for you.

Re: restart of openvpn connection changes the namespace

Posted: Mon Jun 04, 2018 7:07 pm
by puneet
Thank you for your reply. I understand but, not sure what's changing the DNS setting...
Therefore, I would like the OpenVPN to change the DNS setting, to my desired configuration.
I already configured it on Server side. Do I also have to manually make changes to the client config file?

Re: restart of openvpn connection changes the namespace

Posted: Thu Jun 07, 2018 11:19 am
by novaflash

Re: restart of openvpn connection changes the namespace

Posted: Thu Jun 07, 2018 8:07 pm
by puneet
Thank you @novaflash I just resolved the Ubuntu 18.04 issue by changing the resolv.conf file. Link for reference...
https://askubuntu.com/questions/973017/ ... orkmanager