ubuntu clash 配合smartdns

下载安装clash

下载安装smartdns

github 下载地址

配置

配置smartdns

  1. 设置smartdns配置端口,修改为没有占用的端口号,其他的都不用修改,官方推荐默认参数最佳!
    编辑vim /etc/smartdns/smartdns.conf
bash 复制代码
server-name smartdns
bind [::]:553 # 填写一个没有占用的端口号
  1. 启动
bash 复制代码
# 启动
sudo systemctl start smartdns
# 查看状态
sudo systemctl status smartdns
  1. 检查端口是否开启服务
shell 复制代码
ss -tunl | grep 553 

配置clash

修改部分:nameserver和fallback都填smartdns的服务端口. 其他的dns服务器不用添加。

在clash的yaml配置文件中:

yaml 复制代码
nameserver:
	127.0.0.1:553
fallback:
	127.0.0.1:553
相关推荐
大筒木老辈子1 天前
Linux笔记---计算机网络概述
linux·笔记·计算机网络
小白考证进阶中1 天前
终于赶在考试券过期前把Oracle OCP证书考下来了!
运维·数据库·oracle·dba·开闭原则·数据库管理员
keep__go1 天前
postgresql9.2.4 跨版本升级14.6
linux·运维·数据库·postgresql
Doris_LMS1 天前
Git的强软硬回退(三)
运维·服务器·数据库·git·idea
深思慎考1 天前
LinuxC++项目开发日志——高并发内存池(1-定长内存池)
linux·c++
(Charon)1 天前
基于 epoll 的高并发服务器原理与实现(对比 select 和 poll)
运维·服务器
Jtti1 天前
在 Debian 系统上清理缓存的方式和具体操作方法
运维·缓存·debian
伐尘1 天前
【mac】如何在 macOS 终端中高效查找文件:五种实用方法
运维·macos
川石课堂软件测试1 天前
Oracle 数据库如何查询列
linux·数据库·sql·功能测试·oracle·grafana·prometheus
zzu123zsw1 天前
第15章 Jenkins最佳实践
运维·jenkins