暗能星系

    • 登录
    • 搜索

    ubuntu 域名无法解析

    小技巧
    1
    1
    7
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • A
      anneng 最后由 编辑

      For years it’s been simple to set up DNS on a Linux machine. Just add a couple of entries to /etc/resolv.conf and you’re done.

      Use Google's public DNS servers.

      nameserver 8.8.4.4
      nameserver 8.8.8.8
      But things change and now it’s not that simple. If you now edit /etc/resolv.conf on Ubuntu you’ll find that the edits are ephemeral. If you restart (or even hibernate) your machine then they’ll be overwritten by default content.

      nameserver 127.0.0.53
      search Home
      This is pretty simple to fix though.

      Install the resolvconf package.

      sudo apt install resolvconf
      Edit /etc/resolvconf/resolv.conf.d/head and add the following:

      Make edits to /etc/resolvconf/resolv.conf.d/head.

      nameserver 8.8.4.4
      nameserver 8.8.8.8
      Restart the resolvconf service.

      sudo service resolvconf restart
      Fix should be permanent.

      1 条回复 最后回复 回复 引用 0
      • First post
        Last post
      Powered by 暗能星系