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

小型电商平台有哪些网络建站优化科技

小型电商平台有哪些,网络建站优化科技,wordpress菜单链接新窗口,全网营销策划公司域名解析被干扰的有点严重,直接使用谷歌dns服务器来解析ip 第一、永久修改DNS方法 1、修改 /etc/systemd/resolved.conf 文件 vi /etc/systemd/resolved.conf这里我们可以看到这些参数: # 指定 DNS 服务器,以空白分隔,支持 IP…

域名解析被干扰的有点严重,直接使用谷歌dns服务器来解析ip

第一、永久修改DNS方法

1、修改 /etc/systemd/resolved.conf 文件

vi  /etc/systemd/resolved.conf

这里我们可以看到这些参数:

# 指定 DNS 服务器,以空白分隔,支持 IPv4 或 IPv6 位置
DNS=8.8.8.8 114.114.114.114
# 备用 DNS 服务器
FallbackDNS=8.8.8.8
# 设置搜索域名
Domains=domain.com
# 设置 LLMNR 是否激活,可用的选项有 yes、no、resolve
LLMNR=yes
# 设置 MulticastDNS 是否激活,可用的选项有 yes、no、resolve
MulticastDNS=yes
# 设置 DNSSEC 是否激活,可用的选项有 yes、no、allow-downgrade
DNSSEC=yes
# 设置缓存是否激活,可用的选项有 yes、no、no-negative
Cache=no-negative

根据需要修改 resolved.conf 文件中的DNS,然后保存。
我的配置是

#  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 114.114.114.114
FallbackDNS=8.8.4.4
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
Cache=no
#DNSStubListener=yes

2、重启 systemd-resolved 服务

systemctl restart systemd-resolved

3、设置开机启动 systemd-resolved 服务

systemctl enable systemd-resolved

4、备份 systemd-resolved 托管文件 resolv.conf

mv /etc/resolv.conf /etc/resolv.conf.bak

重新生成。

ln -s /run/systemd/resolve/resolv.conf /etc/

第二、临时修改DNS方法

如果我们临时使用的话,也可以临时修改DNS。

修改下面文件:

vi /etc/resolv.conf

加入想要修改的DNS

nameserver 8.8.8.8
nameserver 8.8.4.4

如果多个DNS,就一行一个,修改之后保存退出即可;此方法修改后即刻生效,但重启后失效。

清理现有dns缓存

sudo systemd-resolve --flush-caches
sudo systemctl restart systemd-resolved

查看现在的dns

 cat /etc/resolv.conf
http://www.ds6.com.cn/news/111599.html

相关文章:

  • 创建网站要多少钱免费关键词挖掘网站
  • 常青花园做网站的公司百度竞价可以自学吗
  • wordpress 禁用日期seo推广专员
  • seo网站推广推荐网销平台排名
  • 人工智能郑州seo排名工具
  • 龙岗网站建设公司软文模板300字
  • 做网站 框架市场调研方法有哪几种
  • 厦门推广平台较好的seo云优化外包
  • 式网站软文自助发稿平台oem
  • 行业网站排名游戏推广是干什么的
  • 教做黏土手工的网站国外网站谷歌seo推广
  • 个人网站建站流程企业网站优化服务
  • 幻灯片在什么网站做品牌网络营销案例
  • 泗阳网站建设天津搜索引擎seo
  • 做网站需要学什么软件百度怎么创建自己的网站
  • 浙江杭州疫情最新消息网站推广seo教程
  • 甘肃做网站找谁网站分析报告范文
  • 网站开发需求文档模板网络营销最火的案例
  • 武汉做网站公司排名百度云网页版登录入口
  • 武汉seo结算专业黑帽seo
  • 香港网站建设 深圳分公司cms网站
  • 专注与开发网站的北京网络公司关键词出价计算公式
  • thinkphp大型网站开发发布会直播平台
  • 网站顶部固定怎么做厦门百度seo排名
  • 网页制作淘宝网站建设网站按天扣费优化推广
  • 网站设计合同自己如何优化网站排名
  • 做定制校服的网站四平网站seo
  • wordpress 需要多大数据库搜索引擎优化的主题
  • 个体制作网站设计网站免费网站免费
  • 四川省凉亭建设工程有限公司网站热搜榜排名今日