mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-13 21:48:23 +02:00
Rename to install-unbound-server.ps1
This commit is contained in:
parent
029391c4e5
commit
50614a4399
@ -1,10 +1,10 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs Unbound (needs admin rights)
|
Installs Unbound server (needs admin rights)
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script installs Unbound, a validating, recursive, caching DNS resolver. It needs admin rights.
|
This PowerShell script installs Unbound, a validating, recursive, caching DNS resolver. It needs admin rights.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./install-unbound
|
PS> ./install-unbound-server
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -20,7 +20,7 @@ try {
|
|||||||
& sudo apt update -y
|
& sudo apt update -y
|
||||||
if ($lastExitCode -ne "0") { throw "'apt update' failed" }
|
if ($lastExitCode -ne "0") { throw "'apt update' failed" }
|
||||||
|
|
||||||
"⏳ (2/10) Installing Unbound package..."
|
"⏳ (2/10) Installing the Unbound package..."
|
||||||
& sudo apt install unbound unbound-anchor -y
|
& sudo apt install unbound unbound-anchor -y
|
||||||
if ($lastExitCode -ne "0") { throw "'apt install unbound' failed" }
|
if ($lastExitCode -ne "0") { throw "'apt install unbound' failed" }
|
||||||
|
|
||||||
@ -49,11 +49,11 @@ try {
|
|||||||
& sudo unbound-control start
|
& sudo unbound-control start
|
||||||
if ($lastExitCode -ne "0") { throw "'unbound-control start' failed" }
|
if ($lastExitCode -ne "0") { throw "'unbound-control start' failed" }
|
||||||
|
|
||||||
"⏳ (9/10) Checking Unbound status..."
|
"⏳ (9/10) Checking status of Unbound..."
|
||||||
& sudo unbound-control status
|
& sudo unbound-control status
|
||||||
if ($lastExitCode -ne "0") { throw "'unbound-control status' failed" }
|
if ($lastExitCode -ne "0") { throw "'unbound-control status' failed" }
|
||||||
|
|
||||||
"⏳ (10/10) Training Unbound with popular domain names..."
|
"⏳ (10/10) Training Unbound with 200 popular domain names..."
|
||||||
& "$PSScriptRoot/check-dns.ps1"
|
& "$PSScriptRoot/check-dns.ps1"
|
||||||
if ($lastExitCode -ne "0") { throw "'unbound-control status' failed" }
|
if ($lastExitCode -ne "0") { throw "'unbound-control status' failed" }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user