华强北电脑城 龙岗电子世界 龙华电脑城  凯尔电脑

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2491|回复: 0

How To Install smartdns on Ubuntu 20.04

[复制链接]
发表于 2022-5-17 19:29:02 | 显示全部楼层 |阅读模式
Releases · pymumu/smartdns · GitHub
, X4 ~% D* m( X9 J
SmartDNS is a local DNS server. SmartDNS accepts DNS query requests from local clients, obtains DNS query results from multiple upstream DNS servers, and returns the fastest access results to clients. Avoiding DNS pollution and improving network access speed, supports high-performance ad filtering. Unlike dnsmasq’s all-servers, smartdns returns the fastest access resolution.

( H7 x. b4 ~/ j6 y
https://github.com/pymumu/smartdns/releases/download/Release36.1/smartdns.1.2022.04.05-2046.x86_64-linux-all.tar.gz
安装
下载配套安装包,并上传到 Linux 系统中。
标准 Linux 系统(X86 / X86_64)请执行如下命令安装:
$ tar zxf smartdns.1.2022.04.05-2046.x86_64-linux-all.tar.gz$ cd smartdns$ chmod +x ./install$ ./install -ihtopsystemctl stop smartdnswinscp hostname
2 l; \4 A4 e0 @- V* c$ \; O8 _7 v( J% m9 a7 P- c" @

2 s8 z8 D( N7 c* h: @5 e
, m2 f% w) R) D! K' m

' u& `+ F5 A) z
; x" H. h; r) b. S- {( l- v# |9 z7 o/ V+ i# B

3 z# t2 b5 }, [8 P0 X& g% p' U0 l5 U' ~
% C8 Y- R* x2 s
Install smartdns Using apt
Update apt database with apt using the following command.
sudo apt updateCopy4 |& H- Q7 h% c# s6 p: W

( O1 }6 s1 S1 h- v3 c: g2 {+ V- n  O% M! ~7 m; y
* s7 e, D2 `6 M# M! B; d1 M( r" v! |
After updating apt database, We can install smartdns using apt by running the following command:
sudo apt -y install smartdnsCopy
; J& P/ u- c" v% J2 h) o! w$ Z  L8 W& f1 y! E- q! `
1 x# p2 p: d1 I& k) R) a( `
5 r4 B) R8 w7 @( g( V
Install smartdns Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.
sudo aptitude updateCopy
* p9 o* d0 y8 s) b# v0 {/ V8 b3 l" b4 [, W- e! U& u
4 H! [9 v& s  z6 Y. u% i

) d" U; }1 W0 h) {
After updating apt database, We can install smartdns using aptitude by running the following command:
sudo aptitude -y install smartdnsCopy( u/ Y2 J6 _$ t9 o  l8 }

: h; Y  E# L( U8 x) ?) e1 N( s. \, j7 j3 \6 ?8 I# w# \- g# r

" }; R( U" g5 IHow To Uninstall smartdns on Ubuntu 21.04
To uninstall only the smartdns package we can use the following command:
sudo apt-get remove smartdnsCopy
7 M2 d" U3 _/ R& [* Y4 y
$ a: U# D' Y8 k; B5 Q: s1 o' d( Y: f; @
2 Y9 ~0 V0 X" T7 `) v1 S
Uninstall smartdns And Its Dependencies
To uninstall smartdns and its dependencies that are no longer needed by Ubuntu 21.04, we can use the command below:
sudo apt-get -y autoremove smartdnsCopy
( q* t+ Z/ g& l: A/ ^# o
+ V6 n6 T/ Z& z, p7 l. Q! w! ]  U; c4 T6 g+ z8 e( |5 s
& @4 ?6 Y4 f) W& x+ \
Remove smartdns Configurations and Data
To remove smartdns configuration and data from Ubuntu 21.04 we can use the following command:
sudo apt-get -y purge smartdnsCopy
+ V: k; A, C  F$ O* F& @$ X% j
) v" ]# E- L9 C: ]9 k2 K% t! W  a  y& G2 m' k
& `( m! F6 i; p# j( N% {0 E$ {
Remove smartdns configuration, data, and all of its dependencies
We can use the following command to remove smartdns configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge smartdnsCopy
4 I8 M* ~1 D! N7 z" ^* J5 o4 n; e6 G3 v. M4 d( [0 g' f* r
  [& v" r, }( |! y) z. z

  T6 Q4 l- @7 G$ s! x! |0 y( N5 c$ Z, jReferencesSummary
In this tutorial we learn how to install smartdns using different package management tools like apt, apt-get and aptitude.

% y6 O5 L' E/ y2 t3 _, G2 A0 S/ I. j$ K: C, ]0 f% x+ w6 v
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|华强北 电脑城 龙岗电子世界 龙华电脑城 pc4g.com ( 粤ICP备16039863号 )

GMT+8, 2024-11-9 18:32 , Processed in 0.246677 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表