linux需要关闭系统的systemd-resolved才能使用自定义dns

  • 关闭
1
sudo systemctl stop systemd-resolved
  • 禁止开机自启
1
sudo systemctl disable system-resolved