/etx/systemd/resolved.conf是ubuntu下DNS解析服务配置文件,systemd为ubuntu下system and service配置目录

step 1——修改resolved.conf参数

管理员权限打开 /systemd/resolved.conf

sudo nano /etc/systemd/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. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the resolved.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/resolved.conf' to display the full config.
#
# See resolved.conf(5) for details.[Resolve]
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
# Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
# Google:     8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8844#dns.google
# Quad9:      9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
DNS=1.1.1.1
FallbackDNS=9.9.9.9
#Domains=
DNSSEC=allow-downgrade
DNSOverTLS=opportunistic
#MulticastDNS=no
#LLMNR=no
Cache=no-negative
#CacheFromLocalhost=no
DNSStubListener=yes
#DNSStubListenerExtra=
ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no

参数的具体含义见ubuntu manual

step2——重启DNS服务

systemctl restart systemd-resolved #重置DNS服务
systemctl enable systemd-resolved   #开机自启动

resolvectl 为DNS指令,查看状态用status参数

brief1——ubuntu系统调用库resolvectl&systemctl的解析

resolvectl为解析服务调用,只有查看状态和重置参数命令,用python的库可以实现


systemctl为系统调用,
依次有元命令,元文件命令

机器命令——展示机器指令

作业命令——display作业,取消作业

check,modify环境变量

系统和服务 管理指令——对system manager的配置与执行

系统(调用)命令

step3——小时牛刀


为了更高效地工作,请务必运行以下命令 ~~

服务的操作

启动服务:systemctl start vsftpd.service

关闭服务:systemctl stop vsftpd.service

重启服务:systemctl restart vsftpd.service

显示服务的状态:systemctl status vsftpd.service

在开机时启用服务:systemctl enable vsftpd.service

在开机时禁用服务:systemctl disable vsftpd.service

查看服务是否开机启动:systemctl is-enabled vsftpd.service

查看已启动的服务列表:systemctl list-unit-files|grep enabled

查看启动失败的服务列表:systemctl --failed

ubuntu22.04 DNSSEC(加密DNS服务) configuration相关推荐

  1. 已解决:Ubuntu22.04全盘加密及自动解密

    安装Ubuntu22.04 制作安装盘 官网下载及安装balenaEtcher工具,用于烧录U盘,链接balena.io 官网下载Ubuntu 22.04镜像为文件,链接ubuntu download ...

  2. Ubuntu18.04打开关闭DNS服务

    参考这篇文章https://ilouis.cn/ubuntu/setting_dns.html systemctl start systemd-resolved systemctl enable sy ...

  3. 指定dns加密服务器,[教程] Windows下部署dnscrypt-proxy服务加密DNS请求

    什么是加密DNS?为什么要使用加密DNS? 由于国内运营商网络的问题,很多宽带自带的DNS存在劫持问题,甚至某些宽带存在劫持53端口,直接强制使用运营商DNS.这就有可能会造成DNS解析结果的异常或者 ...

  4. 安卓手机4G/5G网络数据流量(非WiFi)设置加密DNS

    说真的,DNS这玩意用的也不少,不管是域名解析,还是网络设置,都会涉及到 DNS 解析,但是一直停留在 IP 地址阶段,也就是直接输入 DNS 的 IP 地址即可. 最近重新搭建了最新的 AdGuar ...

  5. Ubuntu22.04卸载删除软件去除deb包

    是这样的,安装后需要去除一个软件,通过deb包安装的.需要2个步骤,一个是删除软件,一个是去除deb包 删除软件 通过dpkg --list命令查看你要卸载的软件 root@80-ubuntu:/et ...

  6. Centos DNS服务(二)-bind主从配置与基于TSIG加密的动态更新

    DNS的主从配置 DNS从服务器也叫辅服DNS服务器,如果网络上某个节点只有一台DNS服务器的话,首先服务器的抗压能力是有限的,当压力达到一定的程度,服务器就可能会宕机罢工, 其次如果这台服务器出现了 ...

  7. DNS地址修改和软件源修改汇总(基于ubuntu22.04)

     DNS修改方法和软件源修改方法 1.修改DNS地址 2.修改软件源   教育源   企业源   其它源 3.单独修改软件源   3.1选择Ubuntu软件源   3.2添加其他软件源 1.修改DNS ...

  8. ubuntu 局域网dns服务器_如何在 Ubuntu 16.04 服务器上配置内网 DNS 服务

    DNS 1. 简介 本文使用 BIND9,用尽量少的步骤,搭建出一个可用的内网 DNS 服务.另外要说明的一点是,本文不仅适用于 Ubuntu 16.04,也使用其后的 Ubuntu 系统(截止到目前 ...

  9. 从零开始——在Ubuntu22.04系统中部署KubeEdge架构

    **********记录第一次在Ubtunu系统下部署KubeEdge架构的步骤,并为中间遇到的问题进行解答并进行的记录(面向对Ubtunu操作系统命令不熟悉的小白) ************* 以下 ...

最新文章

  1. (十三) 构建dubbo分布式平台-dubbo管控台安装
  2. 检查邮箱是否包含教育后缀.edu结尾的邮箱
  3. OpenGL 与 GLSL 版本号
  4. MySQL之单表查询、多表查询(二)
  5. 不可重入锁和可重入锁
  6. Flutter报错 使用Column等容器包裹ListView报错的问题
  7. SSM+Jedis初体验
  8. 2000-2018年各省能源消费和碳排放数据数据、1997-2017年各省地级市县区碳排放数、各国二氧化碳排放量(人均公吨数)1960-2014年、二氧化碳排放量、各省市碳排放权额分配实施方案
  9. 使用Python PyQt5实现一个简单的图像识别软件
  10. 微信H5 分享(自定义标题、图片、链接) 与 禁止分享(微信隐藏功能按钮) 功能的写法
  11. java获取本机的外网IP地址(亲测有效)
  12. macbook打开网页慢解决办法
  13. 大数据之Redis:Redis之一主二仆模式
  14. 【渝粤教育】电大中专电商运营实操 (4)作业 题库
  15. 北京大学可视化发展前沿暑期学校第四讲
  16. USRP N321上手
  17. voip是利用计算机网络,VoIP在无线局域网上的应用
  18. 响应式Web设计:HTML5和CSS3实战(读书笔记)
  19. 大数据-玩转数据-MaxCompute 字符串函数
  20. bigquery数据类型_bigquery解释了查询您的数据

热门文章

  1. 组合数计算的几种方法
  2. 将无限循环小数转换成分数形式
  3. NYOJ-94-cigarettes-2013年09月26日22:19:03
  4. Android:安装包的反编译
  5. 膜拜大佬!高性能缓存-Caffeine-原理及实战
  6. windows10 vagrant+VirtualBox安装docker
  7. MarkDown 希腊字母与数学符号的表示
  8. 很好用的java http请求工具:http-request的使用
  9. 【GNN报告】 北京大学​张牧涵:谱图神经网络有多强大?
  10. POJ 1091 跳蚤 【容斥原理】+模板