【问题标题】:VPN Cisco IPSec change DNSVPN Cisco IPSec 更改 DNS
【发布时间】:2019-08-23 22:35:29
【问题描述】:

当我在 macos (10.14.4) 上建立连接 vpn 时,我的 dns 将会改变。 正常wifi连接:

# bash-3.2# cat /etc/resolv.conf
# macOS Notice
#
# This file is not consulted for DNS hostname resolution, address
# resolution, or the DNS query routing mechanism used by most
# processes on this system.
#
# To view the DNS configuration used by this system, use:
#   scutil --dns
#
# SEE ALSO
#   dns-sd(1), scutil(8)
#
# This file is automatically generated.
#
nameserver 8.8.8.8
nameserver 8.8.4.4

通过 vpn 连接:

bash-3.2# cat /etc/resolv.conf
#
# macOS Notice
#
# This file is not consulted for DNS hostname resolution, address
# resolution, or the DNS query routing mechanism used by most
# processes on this system.
#
# To view the DNS configuration used by this system, use:
#   scutil --dns
#
# SEE ALSO
#   dns-sd(1), scutil(8)
#
# This file is automatically generated.
#
nameserver 10.80.3.1

我不想更改名称服务器。 我想知道为什么会发生变化以及如何解决?

【问题讨论】:

    标签: macos dns vpn cisco ipsec


    【解决方案1】:

    它是由思科设置的,比如

    username USER attributes
     vpn-group-policy POLICY
    
    group-policy POLICY
     dns-server value 10.8.3.1
    

    不确定是否可以通过系统 -> 网络 -> your-vpn -> 选项 -> dns..

    覆盖它

    【讨论】: