zoukankan      html  css  js  c++  java
  • Ubuntu Dns设置

    Ubuntu Dns设置以及设置失败处理

    Ubuntu Dns Server要通过修改 /etc/resonconf/resolv.conf.d/base 完成。

    但在Ubuntu 16.04 中会设置失败,影响因素有两个:Network-Managerresolvconf

    • 1、将 Network-Manager 停用

    • 2、使用resolvconf

      有时停用 Network-Manager 配置好base文件,再使用resolvconf -u依然不生效。

      这是因为resolvconf 没开启更新:

      resolvconf --enable-updates

      执行完上面的命令,再检查已经可以了:

      $ cat /etc/resolv.conf
      
      # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
      
      
      #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
      
      nameserver 223.5.5.5
      nameserver 8.8.8.8
      nameserver 100.100.2.136
      nameserver 100.100.2.138

    扩展资料:

    What is the proper way to change the DNS IP?

    Why does /etc/resolv.conf not update when I change my DNS? [duplicate]

    知识共享许可协议 本文由 qingchuwudi 原创,本作品采用知识共享署名 3.0 中国大陆许可协议进行许可。

  • 相关阅读:
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
  • 原文地址:https://www.cnblogs.com/qingchuwudi/p/12077721.html
Copyright © 2011-2022 走看看