Ubuntu 20.04 DNS 设置

Tag: Ubuntu DNS 
Posted on 2022-05-06

编辑 /etc/systemd/resolved.conf 文件,添加 DNS Server

DNS=10.0.0.1 192.168.0.1

重启 resolved 服务

systemctl restart systemd-resolved

创建服务生成的解析文件软链接到系统解析文件

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

 评论
张三
orz
李四
orz orz
李小四
orz orz orz
张小三
orz orz orz orz
  搜索
  Tags
全部   Ubuntu   Linux   Python   Windows   Shell   转发   浏览器   js   KMS   循环   MySQL   字体   html   css   DNS   电源   多线程   反向代理   重定向   原创   WinSCP   随机   随机数   VSCode   venv   vbs   多进程   远程调试   字典   生活   激活   线程池   日志   数据库   网卡   截取字符   进度条   安装   进程池   领带   uuid   tc   IP   iostat   import   GitHub   dpkg   DHCP   curl   crx   CPU   cloud-init   Chrome   BBR   Apt   iptables   Kitsunebi   subprocess   SSH   SoftEther   Set   samba   pyflakes   pip   Office   Nginx   NextCloud   List   libreoffice   kvm   Adobe  
  功能
You can put anything you want inside of these side widgets. They are easy to use, and feature the new Bootstrap 4 card containers!