linux的DNS被注释掉了是什么意思
发布网友
发布时间:2022-05-12 10:57
我来回答
共2个回答
热心网友
时间:2023-08-18 17:14
DNS是域名解析,被注释掉了的话就不能解析域名了,给你看看域名解析的相关配置了解一下:
root@jaking-virtual-machine:~# cat /etc/resolv.conf
# 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 must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
nameserver 127.0.0.53
search localdomain
更多知识请百度《Linux就该这么学》
热心网友
时间:2023-08-18 17:15
dns 是域名解析系统,将ip地址和域名对应起来
dns 是为了方便人们让主机更有意义,而不是单纯地记住ip地址
linux是多任务多用户的网络操作系统
linux的注释一般用#
配置注释一般代表 此行不生效
希望可以帮助你,请采纳,谢谢!