对于dns失效问题,可以在nmtui设置 以上是20.04的配置方法 ------这里是分割线----- 参考下面进行22.04配置 ubuntu 22.04如何配置静态IP、网关、DNS - 小鲨鱼2018 - 博客园 (cnblogs.com)