91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

Ubuntu中如何編輯resolv.conf文件

小樊
83
2024-08-08 19:52:39
欄目: 智能運維

  1. 打開終端,輸入以下命令打開resolv.conf文件:
sudo nano /etc/resolv.conf
  1. 在打開的文件中,可以編輯nameserver行添加DNS服務器的IP地址,例如:
nameserver 8.8.8.8
nameserver 8.8.4.4
  1. 按下Ctrl + O保存文件,然后按下Ctrl + X退出編輯器。

  2. 如果想要禁止系統更新resolv.conf文件,可以編輯/etc/resolv.conf.head文件,輸入以下內容:

# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "systemd-resolve --status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs should typically not access this file directly, but
# only through the symlink at /etc/resolv.conf. To manage resolv.conf(5)
# in a different way, replace this symlink by a static file or a different
# symlink.
#
# See systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.

nameserver 127.0.0.53
  1. 按下Ctrl + O保存文件,然后按下Ctrl + X退出編輯器。

  2. 重啟網絡服務以使更改生效:

sudo systemctl restart systemd-resolved.service

0
博野县| 云梦县| 长子县| 嫩江县| 原阳县| 绩溪县| 永胜县| 长汀县| 合江县| 尼勒克县| 玛多县| 革吉县| 平果县| 彝良县| 崇明县| 东莞市| 南充市| 梅州市| 丹巴县| 盘锦市| 昆山市| 锡林浩特市| 惠东县| 界首市| 高青县| 温州市| 开化县| 石景山区| 从江县| 大埔区| 长乐市| 社旗县| 客服| 浦江县| 浙江省| 伊金霍洛旗| 黄山市| 南充市| 屏边| 静海县| 环江|