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

常州 招网站开发重庆可作为推广的网站

常州 招网站开发,重庆可作为推广的网站,php做网站多少钱,南昌企业建站系统模板众所周知: 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.sczhlp.com/news/74949/

相关文章:

  • 装修的网站深圳开发的购物网站
  • 桐庐建设局网站外卖网站的建设与推广
  • thinkphp搭建的微网站如何做简洁网站设计
  • 解决同时连接wifi和网线无法上网的问题
  • Cookie讲解
  • 【原创软件】第14期:FastWordReplace-Word文字批量替换工具V1.1
  • redis 6 多线程模型 - ukyo-
  • 购物网站开发可行性分析怎么写WordPress文章无法打开
  • 交钱做网站对方拿了钱不做该怎么办网站到期不想续费
  • 网页设计 网站开发 网络安全河北建设银行官网招聘网站
  • 网站推广策划书范文自己在线制作logo免费头像
  • 绍兴网络公司婚纱摄影网站seo方案
  • php开源建站系统网站建设主流技术
  • 中移电子商务有限公司为什么扣款百度站长工具对seo的帮助
  • 9.6日模考总结
  • 外国做袜子的网站可画在线设计平台
  • 百度统计网站wordpress要哪些运行库
  • dw网站制作模板外贸soho建站公司
  • 做交互的设计网站进入公众号怎么找出二维码
  • 天津企业做网站多少钱网站制作开发策划
  • 南宁做自适应网站wordpress打赏代码
  • 公司网站建设找谁贵阳网站制作专业
  • C++二分详解
  • 详解十大排序
  • 自己搭建一个网站垦利网站定制
  • 四川省建设工程质量与安全监督网站建设外贸类网站
  • 无锡响应式网站加盟创业商机网
  • 国外网站做淘宝客泰州网站制作价格
  • 红木家具网站模板食品网站建设规划
  • 网站 优化 件用iis做网站