Dns 名称服务器在ubuntu 18.04中使用openconnect和openconnect gnome进行不同的更新

Dns 名称服务器在ubuntu 18.04中使用openconnect和openconnect gnome进行不同的更新,dns,vpn,ubuntu-18.04,networkmanager,openconnect,Dns,Vpn,Ubuntu 18.04,Networkmanager,Openconnect,这似乎是Ubuntu 18.04中网络管理器openconect gnome的一个新问题+ 我安装sudo-apt-install-network-manager-openconnect-gnome以实现gnome与opeconnect和Cisco-AnyConnect兼容VPN(openconnect)的集成 顺便说一句(这实际上可能是相关的),我这样做是为了得到*。本地地址来解决: sudo ln-sf/run/systemd/resolv/resolv.conf/etc/resolv.c

这似乎是Ubuntu 18.04中网络管理器openconect gnome的一个新问题+

我安装
sudo-apt-install-network-manager-openconnect-gnome
以实现gnome与opeconnect和Cisco-AnyConnect兼容VPN(openconnect)的集成

顺便说一句(这实际上可能是相关的),我这样做是为了得到
*。本地
地址来解决:

  • sudo ln-sf/run/systemd/resolv/resolv.conf/etc/resolv.conf
  • /etc/nsswitch.conf
如果我通过gnome网络管理器使用openconnect连接到VPN,VPN地址(工作站点)不会解析。常规站点继续按预期工作

如果我在命令行上使用openconnect连接到VPN,并使用
sudo openconnect VPN.mycompany.com
,则VPN地址(工作站点)do解析。常规站点继续按预期工作

我想我会检查一下,看看这些VPN连接方法之间是否有任何差异,而且肯定有一种:

在命令行上打开连接(工作):

openconnect gnome集成(不工作):

如果我删除(或注释掉)nameserver
192.168.1.1
,这就是工作文件和非工作文件之间的内容差异。。。一切正常。我可以解决公司内的地址和正常的网站工作预期

这种情况不会发生在Fedora身上。一切都是开箱即用的。我不确定为什么
网络管理器openconnect gnome
包的工作方式不同,或者是否有一种方法可以让它在没有这两种方法的情况下工作

  • 手工编辑文件
  • 从命令行中使用
    openconnect
    工具,并保持终端打开以运行该命令
#@VPNC_GENERATED@ -- this file is generated by vpnc
# and will be overwritten by vpnc
# as long as the above mark is intact
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 10.10.10.10
nameserver 10.10.10.11
search broadband mycompany.com
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 192.168.1.1
nameserver 10.10.10.10
nameserver 10.10.10.11
search broadband mycompany.com