当我在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
我不想更改名称服务器。 我不知道为什么会更改以及如何解决?
答案 0 :(得分:0)
由Cisco设置,例如
IList<Name> list = new List<Name>();
list.Add(new Name{ Forename="Bert", Surname="Fred"});
list.Add(new Name { Forename = "John", Surname = "Smith" });
DataTable table = new DataTable();
table.Columns.Add("Forename");
table.Columns.Add("Surname");
foreach (Name item in list)
{
var row = table.NewRow();
row["Forename"] = item.Forename;
row["Surname"] = item.Surname;
table.Rows.Add(row);
}
不确定是否可以通过系统->网络-> your-vpn->选项-> dns覆盖它。