需要安装resolvconf包

# sudo apt install resolvconf

然后在/etc/network/interfaces 写入

dns-nameservers 114.114.114.114 8.8.8.8

注意: 多个dns以空格隔开

相关文章:

  • 2022-12-23
  • 2021-12-12
  • 2021-08-26
  • 2022-12-23
  • 2021-06-02
  • 2021-06-16
  • 2022-02-07
  • 2022-12-23
猜你喜欢
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-12-30
  • 2022-12-23
  • 2021-08-26
相关资源
相似解决方案