我可以使用以下命令在 Windows Server 2019 上通过命令行成功删除 IPv4 DNS 服务器:
netsh interface ipv4 delete dnsserver "My Ethernet" all
执行此命令后ipconfig /all
,我看到以下 IPv6 DNS 服务器出现了(之前并不存在):
... DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1 fec0:0:0:ffff::2%1 fec0:0:0:ffff::3%1 ...
我(天真地)尝试了以下命令,但均不起作用:
netsh interface ipv6 delete dnsserver "My Ethernet" all
netsh interface delete dnsserver "My Ethernet" all