Bug 1222221

Summary: openconnect does jnot update DNS servers
Product: [openSUSE] openSUSE Distribution Reporter: Aaron Williams <aaron.w2>
Component: NetworkAssignee: Rick Salevsky <rsalevsky>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Aaron Williams 2024-04-01 23:13:59 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.
Comment 1 Aaron Williams 2024-04-04 08:17:18 UTC
This may be due to my settings. I found a way around it by using an alternative script and switching to dnsmasq.