Bugzilla – Bug 1222221
openconnect does jnot update DNS servers
Last modified: 2024-05-21 15:42:16 UTC
I have my desktop configured with a static IP address via NetworkManager. After switching from Wicked to Network Manager, however, openconnect is no longer adding the VPN DNS servers to resolv.conf. After I connect to the VPN, I see /run/netconfig/tun0/netconfig0 which contains the appropriate values, but netconfig does not pick them up. cat /run/netconfig/tun0/netconfig0 CREATETIME='775090' SERVICE='vpnc' INTERFACE='tun0' DNSSERVERS='10.xx.yy.xx 10.ww.xxx.yy' DNSDOMAIN='aaaaaaa.com bbbbbbbbb.com cccccc.com ddddddd.org eee.com fffffff.com' /run/netconfig/resolv.conf does not contain any of this data, however. This requires that I must manually edit resolv.conf every time I connect to my VPN.
This may be due to my settings. I found a way around it by using an alternative script and switching to dnsmasq.