当前位置: 首页 > news >正文

网站有备案号榜单优化

网站有备案号,榜单优化,网站建设是编程吗,wordpress 手册 chm众所周知: Ubuntu在域名解析时,最直接使用的是/etc/resolve.conf文件,它是/run/systemd/resolve/resolve.conf的软链接,而对于刚装完的ubuntu系统,该文件的内容如下 ubuntuip-172-31-36-184:/etc$ cat resolv.conf #…

众所周知:

Ubuntu在域名解析时,最直接使用的是/etc/resolve.conf文件,它是/run/systemd/resolve/resolve.conf的软链接,而对于刚装完的ubuntu系统,该文件的内容如下

ubuntu@ip-172-31-36-184:/etc$ cat 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 directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# 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 172.31.0.2
search ap-northeast-1.compute.internal

第1步, 修改/etc/systemd/resolved.conf,例如:
谷歌的dns=8.8.8.8 cloudflare的dns: 1.1.1.1

ubuntu@ip-172-31-36-184:/etc/systemd$ ls
journald.conf  logind.conf  network  networkd.conf  pstore.conf  resolved.conf  sleep.conf  system  system.conf  timesyncd.conf  user  user.conf
ubuntu@ip-172-31-36-184:/etc/systemd$ cat resolved.conf 
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See resolved.conf(5) for details[Resolve]
DNS=8.8.8.8 1.1.1.1
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#DNSOverTLS=no
#Cache=no-negative
#DNSStubListener=yes
#ReadEtcHosts=yes

个人猜测,这个时候,系统在往/run/systemd/resolve/resolv.conf里面写域名解析服务器地址的时候,会从/etc/systemd/resolved.conf中取得DNS相关的配置。

    2,重启域名解析服务systemctl restart systemd-resolvedsystemctl enable systemd-resolved3,备份当前的/etc/resolve.conf,并重新设置/run/systemd/resolve/resolv.conf  到/etc/resolve.conf的软链接mv    /etc/resolv.conf    /etc/resolv.conf.bakln  -s   /run/systemd/resolve/resolv.conf    /etc/

验证:

ubuntu@ip-172-31-36-184:/etc$ cat 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 directly to
# all known uplink DNS servers. This file lists all configured search domains.
#
# 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 8.8.8.8
nameserver 1.1.1.1
nameserver 172.31.0.2
search ap-northeast-1.compute.internal

参考:
1-华为云开发者论坛
2-csdn https://blog.csdn.net/booklijian/article/details/116491288

在这里插入图片描述

http://www.tj-hxxt.cn/news/65989.html

相关文章:

  • 建筑公司网站大全社群营销的案例
  • 外包做网站哪家好职业技能培训网站
  • 行业网站建设网站宣传方式有哪些
  • 金乡网站建设天津网络广告公司
  • 深圳新闻类网站的建设河南网站排名优化
  • 什么是网站建设整体策划方案软文平台发布
  • 石家庄网站推广优化淘宝搜索排名
  • 自建网站如何在百度上查到搜资源
  • 化工网站源码怎么做表格
  • 做网站的前景武汉百度快速排名提升
  • 苏州网站制作公司徐州关键词优化排名
  • 怎样建立营销网站百度关键词排名提升工具
  • 网站建设论坛免费推广软件 推广帮手
  • 网站建设维护是做什么的2022智慧树互联网与营销创新
  • 分类信息网站排行百度指数大数据分享平台
  • 渭南 网站集约化建设网络营销软件推广
  • 政府网站建设与维护太原seo网站排名
  • 柳州市住房和城乡建设部网站网站seo运营
  • 做二手网站优化的含义是什么
  • 做国外市场哪个网站好谷歌安装器
  • 济南免费建站网络技术推广服务
  • 网站做支付需要准备什么条件seo建站需求
  • 网站快速排名优化价格百度站长平台电脑版
  • 太原seo网站排名小网站关键词搜什么
  • 免费设计软件下载网站大全广州私人做网站
  • be 设计网站网站建站系统
  • 科技平台网站建设市场营销计划书模板
  • 石家庄网站建设制作吉林网络公司
  • 武汉做网站推广哪家好企业网站营销的优缺点及案例
  • 企业做的网站费入什么科目市场推广的方法和规划