mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-13 14:37:19 +02:00
Add install-unbound.ps1
This commit is contained in:
@ -19,12 +19,15 @@ try {
|
||||
$PathToRepo = "$PSScriptRoot/.."
|
||||
$Table = import-csv "$PathToRepo/Data/domain-names.csv"
|
||||
|
||||
foreach($Row in $Table) {
|
||||
write-progress "Resolving $($Row.Domain) ..."
|
||||
if ($IsLinux) {
|
||||
$Ignore = nslookup $Row.Domain
|
||||
} else {
|
||||
$Ignore = resolve-dnsName $Row.Domain
|
||||
if ($IsLinux) {
|
||||
foreach($Row in $Table) {
|
||||
write-progress "Resolving $($Row.Domain)..."
|
||||
$null = dig $Row.Domain
|
||||
}
|
||||
} else {
|
||||
foreach($Row in $Table) {
|
||||
write-progress "Resolving $($Row.Domain)..."
|
||||
$null = resolve-dnsName $Row.Domain
|
||||
}
|
||||
}
|
||||
$Count = $Table.Length
|
||||
|
Reference in New Issue
Block a user