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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 2186|回复: 0

How To Install smartdns on Ubuntu 20.04

[复制链接]
发表于 2022-5-17 19:29:02 | 显示全部楼层 |阅读模式
Releases · pymumu/smartdns · GitHub' R" a2 L# U) [6 C# }5 n  {
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.
* l# o# k! }$ A1 ?, h
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
8 |# J; q: A/ I2 J# z# b) \$ A* V8 V5 C8 m$ G5 ~# `( e
' v/ k9 }1 {( l+ k0 |# |
: N  _4 x. ~! W7 q5 g8 a$ p

7 o( w3 c4 h9 y' J/ t" I0 o. x$ B+ J" R7 K+ C0 O2 x
7 n" \1 @' l- H1 @. o. S% ]- b2 M
3 w$ g1 E4 a8 i7 j6 K/ D

0 G! k5 U. }' _$ m3 z8 L
# i5 U& S+ J+ E" D
Install smartdns Using apt
Update apt database with apt using the following command.
sudo apt updateCopy
! J/ v/ [: @) W, R' B+ C+ e% G: |2 }
% t2 S& ?2 m" o1 x0 `% q

  i5 t; r; [" d8 x
After updating apt database, We can install smartdns using apt by running the following command:
sudo apt -y install smartdnsCopy
0 F7 B# s" B: n# L) O% A
' C( D' d& j0 E& w4 Q+ W9 {5 E" b  z9 z& e/ r" |# c( \

% U0 Y9 w! h- \  E( z) N# c& cInstall 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 updateCopy2 L0 G* [2 G  Z& }

7 O) v7 J) Y, f6 L/ w  Y/ w
+ z' _1 u/ ~+ x! j& z$ b$ D

6 l$ }. b3 Q' E  B
After updating apt database, We can install smartdns using aptitude by running the following command:
sudo aptitude -y install smartdnsCopy' J, i7 U4 t( Y
: e+ [+ q' }) l; u: T

9 x+ l, l% l$ ^& s/ |+ |$ @: r/ E

  n* \# O- h* Z# C8 ^- Y: ~% {" fHow To Uninstall smartdns on Ubuntu 21.04
To uninstall only the smartdns package we can use the following command:
sudo apt-get remove smartdnsCopy5 W; G8 u/ N+ i' |: H& [) a) M- e7 Z

, }( X7 A" O; v1 w& V; X! k3 L; _5 j& x& L- M
+ m# D& d# V3 l" m
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 smartdnsCopy8 G% g$ u, S+ G

9 b9 ^( T: j4 O+ U7 ]7 u2 x0 t5 V" K) @$ d9 s
6 W+ l8 T6 S1 C" G1 I1 G2 c* a+ @
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
% _6 h. H4 j0 P; R* Q0 S) v( {) f  j% m. f6 p: v2 V" [* t
1 n  c/ F: R& s. ^  `' y
! [6 e: h& a# b0 s: h8 `; d; Y
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" [2 J- T- N, r9 Q6 C  _

6 }0 H) H" Q* [; D! F/ z5 P
! C& v6 T7 v( T$ s
, m) h0 t/ W2 w; `# O+ b$ f
ReferencesSummary
In this tutorial we learn how to install smartdns using different package management tools like apt, apt-get and aptitude.
$ Z0 P! M, v/ w! ~" H) e% @2 Q

* Z/ Y$ E/ W3 o/ T
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-18 17:49 , Processed in 0.173263 second(s), 15 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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