mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-22 07:53:21 +01:00
Reduce # of domains to 100 for performance
This commit is contained in:
parent
37601075c8
commit
2bf762f3b3
@ -1,182 +1,89 @@
|
|||||||
DOMAIN,
|
DOMAIN,
|
||||||
a.root-servers.net,
|
a.root-servers.net,
|
||||||
accounts.google.com,
|
|
||||||
activity.windows.com,
|
|
||||||
airbnb.at,
|
|
||||||
airbnb.com,
|
airbnb.com,
|
||||||
airbnb.de,
|
|
||||||
aka.ms,
|
aka.ms,
|
||||||
alternate.de,
|
|
||||||
api.dropboxapi.com,
|
|
||||||
api.met.no,
|
api.met.no,
|
||||||
api.serenade.ai,
|
|
||||||
api1.origin.com,
|
|
||||||
arc.msn.com,
|
arc.msn.com,
|
||||||
arte.tv,
|
arte.tv,
|
||||||
assets.msn.com,
|
assets.msn.com,
|
||||||
amazon.com,
|
amazon.com,
|
||||||
amazon.co.uk,
|
|
||||||
amazon.de,
|
|
||||||
amazon.fr,
|
|
||||||
amazon.it,
|
|
||||||
b.root-servers.net,
|
b.root-servers.net,
|
||||||
banking.ing-diba.de,
|
|
||||||
bing.com,
|
bing.com,
|
||||||
bing.de,
|
|
||||||
bing.fr,
|
|
||||||
bitbucket.org,
|
bitbucket.org,
|
||||||
blitzortung.org,
|
|
||||||
bolt.dropbox.com,
|
|
||||||
c.root-servers.net,
|
c.root-servers.net,
|
||||||
catalog.gamepass.com,
|
|
||||||
changelogs.ubuntu.com,
|
|
||||||
client.dropbox.com,
|
client.dropbox.com,
|
||||||
client.wns.windows.com,
|
|
||||||
clients1.google.com,
|
|
||||||
clients2.google.com,
|
|
||||||
clients3.google.com,
|
|
||||||
clients4.google.com,
|
|
||||||
contacts.google.com,
|
contacts.google.com,
|
||||||
d.dropbox.com,
|
d.dropbox.com,
|
||||||
d.root-servers.net,
|
d.root-servers.net,
|
||||||
dasoertliche.de,
|
|
||||||
deepl.com,
|
|
||||||
dell.com,
|
dell.com,
|
||||||
de.yahoo.com,
|
|
||||||
discord.com,
|
discord.com,
|
||||||
discordapp.com,
|
discordapp.com,
|
||||||
dhl.de,
|
|
||||||
download.windowsupdate.com,
|
|
||||||
duckduckgo.com,
|
duckduckgo.com,
|
||||||
e.root-servers.net,
|
e.root-servers.net,
|
||||||
earth.google.com,
|
earth.google.com,
|
||||||
ebay.com,
|
ebay.com,
|
||||||
ebay.de,
|
|
||||||
ebay.fr,
|
|
||||||
ebook3000.com,
|
|
||||||
edition.cnn.com,
|
edition.cnn.com,
|
||||||
f.root-servers.net,
|
f.root-servers.net,
|
||||||
facebook.com,
|
facebook.com,
|
||||||
facebook.de,
|
|
||||||
facebook.fr,
|
|
||||||
flightradar24.com,
|
flightradar24.com,
|
||||||
fonts.google.com,
|
fonts.google.com,
|
||||||
fonts.googleapis.com,
|
fonts.googleapis.com,
|
||||||
fonts.gstatic.com,
|
|
||||||
foto-webcam.eu,
|
foto-webcam.eu,
|
||||||
foursquare.com,
|
foursquare.com,
|
||||||
g.root-servers.net,
|
g.root-servers.net,
|
||||||
github.com,
|
github.com,
|
||||||
github.map.fastly.net,
|
|
||||||
gmail.com,
|
gmail.com,
|
||||||
google.at,
|
|
||||||
google.com,
|
google.com,
|
||||||
google.de,
|
|
||||||
google.fr,
|
|
||||||
google.it,
|
|
||||||
googleapis.com,
|
|
||||||
gstatic.com,
|
gstatic.com,
|
||||||
h.root-servers.net,
|
h.root-servers.net,
|
||||||
holidaycheck.de,
|
|
||||||
hornbach.de,
|
|
||||||
i.root-servers.net,
|
i.root-servers.net,
|
||||||
i.ytimg.com,
|
|
||||||
IEEE.org,
|
IEEE.org,
|
||||||
ibm.com,
|
ibm.com,
|
||||||
icons8.com,
|
icons8.com,
|
||||||
imap.googlemail.com,
|
imap.googlemail.com,
|
||||||
install.robertsspaceindustries.com,
|
|
||||||
ipfs.io,
|
|
||||||
ipv6.msftconnecttest.com,
|
|
||||||
j.root-servers.net,
|
j.root-servers.net,
|
||||||
k.root-servers.net,
|
k.root-servers.net,
|
||||||
l.root-servers.net,
|
l.root-servers.net,
|
||||||
launcher2.robertsspaceindustries.com,
|
|
||||||
licensing.mp.microsoft.com,
|
|
||||||
live.github.com,
|
live.github.com,
|
||||||
live.thunderbird.net,
|
|
||||||
livepatch.canonical.com,
|
|
||||||
login.live.com,
|
login.live.com,
|
||||||
longfiles.com,
|
|
||||||
m.root-servers.net,
|
m.root-servers.net,
|
||||||
mail.google.com,
|
mail.google.com,
|
||||||
map.blitzortung.org,
|
|
||||||
maps.google.com,
|
maps.google.com,
|
||||||
maps.google.de,
|
|
||||||
maps.google.fr,
|
|
||||||
microsoft.com,
|
microsoft.com,
|
||||||
mozilla.org,
|
mozilla.org,
|
||||||
mtalk.google.com,
|
|
||||||
music.google.com,
|
music.google.com,
|
||||||
news.google.com,
|
news.google.com,
|
||||||
news.google.de,
|
|
||||||
news.google.fr,
|
|
||||||
news.url.google.com,
|
news.url.google.com,
|
||||||
ntp.ubuntu.com,
|
ntp.ubuntu.com,
|
||||||
ogs.google.com,
|
|
||||||
open.spotify.com,
|
open.spotify.com,
|
||||||
opera.com,
|
opera.com,
|
||||||
photos.google.com,
|
photos.google.com,
|
||||||
pixabay.com,
|
pixabay.com,
|
||||||
play.google.com,
|
play.google.com,
|
||||||
plex.tv,
|
plex.tv,
|
||||||
presence.teams.microsoft.com,
|
|
||||||
ptbtime1.ptb.de,
|
|
||||||
ptbtime2.ptb.de,
|
|
||||||
ptbtime3.ptb.de,
|
|
||||||
redhat.com,
|
redhat.com,
|
||||||
reichelt.de,
|
|
||||||
robertsspaceindustries.com,
|
|
||||||
secure.download.dm.origin.com,
|
|
||||||
semonkeys.net,
|
|
||||||
settings.data.microsoft.com,
|
|
||||||
settings-win.data.microsoft.com,
|
|
||||||
sites.google.com,
|
sites.google.com,
|
||||||
slashdot.org,
|
slashdot.org,
|
||||||
speed.cloudflare.com,
|
speed.cloudflare.com,
|
||||||
speedtest.net,
|
speedtest.net,
|
||||||
ssl.gstatic.com,
|
|
||||||
stackoverflow.com,
|
stackoverflow.com,
|
||||||
start.thunderbird.net,
|
|
||||||
static.nvidiagrid.net,
|
|
||||||
storage.googleapis.com,
|
|
||||||
substrate.office.com,
|
|
||||||
sunnyportal.com,
|
sunnyportal.com,
|
||||||
t-online.de,
|
|
||||||
t0.gstatic.com,
|
|
||||||
teams.microsoft.com,
|
teams.microsoft.com,
|
||||||
telemetry.dropbox.com,
|
|
||||||
tile-service.weather.microsoft.com,
|
|
||||||
time.windows.com,
|
time.windows.com,
|
||||||
toggl.com,
|
|
||||||
toom.de,
|
|
||||||
track.toggl.com,
|
|
||||||
translate.google.de,
|
|
||||||
twitter.com,
|
|
||||||
twitter.de,
|
|
||||||
ubuntu.com,
|
ubuntu.com,
|
||||||
update.googleapis.com,
|
update.googleapis.com,
|
||||||
wetter.com,
|
wetter.com,
|
||||||
wttr.in,
|
wttr.in,
|
||||||
www.apple.com,
|
www.apple.com,
|
||||||
www.arte.tv,
|
www.arte.tv,
|
||||||
www.bbc.co.uk,
|
|
||||||
www.bild.de,
|
|
||||||
www.booking.com,
|
www.booking.com,
|
||||||
www.cdc.gov,
|
|
||||||
www.dropbox.com,
|
www.dropbox.com,
|
||||||
www.ecosia.org,
|
www.ecosia.org,
|
||||||
www.etsy.com,
|
www.etsy.com,
|
||||||
www.expedia.com,
|
www.expedia.com,
|
||||||
www.fleschutz.de,
|
www.fleschutz.de,
|
||||||
www.focus.de,
|
|
||||||
www.foto-webcam.eu,
|
|
||||||
www.golem.de,
|
|
||||||
www.google.com,
|
www.google.com,
|
||||||
www.googleapis.com,
|
|
||||||
www.gstatic.com,
|
www.gstatic.com,
|
||||||
www.heise.de,
|
|
||||||
www.hulu.com,
|
|
||||||
www.instagram.com,
|
www.instagram.com,
|
||||||
www.msn.com,
|
www.msn.com,
|
||||||
www.nasa.gov,
|
www.nasa.gov,
|
||||||
@ -184,18 +91,11 @@ www.netflix.com,
|
|||||||
www.nytimes.com,
|
www.nytimes.com,
|
||||||
www.paypal.com,
|
www.paypal.com,
|
||||||
www.redbull.com,
|
www.redbull.com,
|
||||||
www.schneier.com,
|
|
||||||
www.techstage.de,
|
|
||||||
www.tiktok.com,
|
www.tiktok.com,
|
||||||
www.ufainc.com,
|
www.ufainc.com,
|
||||||
www.walmart.com,
|
www.walmart.com,
|
||||||
www.whatsapp.com,
|
www.whatsapp.com,
|
||||||
www.whitehouse.gov,
|
www.whitehouse.gov,
|
||||||
www.windy.com,
|
www.windy.com,
|
||||||
www.wikipedia.at,
|
|
||||||
www.wikipedia.de,
|
|
||||||
www.wikipedia.fr,
|
|
||||||
www.wikipedia.org,
|
www.wikipedia.org,
|
||||||
www.wired.com,
|
|
||||||
www.youtube.com,
|
www.youtube.com,
|
||||||
www.zdf.de,
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
|||||||
<#
|
<#
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Check DNS resolution
|
Check the DNS resolution
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
This PowerShell script measures and prints the DNS resolution speed by using 200 popular domains.
|
This PowerShell script measures the DNS resolution speed (using 100 popular domains) and prints it.
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./check-dns.ps1
|
PS> ./check-dns.ps1
|
||||||
✅ DNS resolves 156.5 domains per second
|
✅ DNS resolves 56.5 domains per second
|
||||||
.LINK
|
.LINK
|
||||||
https://github.com/fleschutz/PowerShell
|
https://github.com/fleschutz/PowerShell
|
||||||
.NOTES
|
.NOTES
|
||||||
@ -13,15 +13,15 @@
|
|||||||
#>
|
#>
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Write-Progress "⏳ Resolving 200 popular domain names..."
|
|
||||||
$table = Import-CSV "$PSScriptRoot/../Data/popular-domains.csv"
|
$table = Import-CSV "$PSScriptRoot/../Data/popular-domains.csv"
|
||||||
$numRows = $table.Length
|
$numRows = $table.Length
|
||||||
|
Write-Progress "⏳ Resolving $numRows domain names..."
|
||||||
|
|
||||||
$stopWatch = [system.diagnostics.stopwatch]::startNew()
|
$stopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||||
if ($IsLinux) {
|
if ($IsLinux) {
|
||||||
foreach($row in $table){$nop=dig $row.Domain +short}
|
foreach($row in $table){$nop=dig $row.Domain +short}
|
||||||
} else {
|
} else {
|
||||||
foreach($row in $table){$nop=Resolve-DNSName $row.Domain}
|
foreach($row in $table){$nop=Resolve-DNSName $row.Domain}
|
||||||
}
|
}
|
||||||
Write-Progress -completed "."
|
Write-Progress -completed "."
|
||||||
[float]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
[float]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||||
|
Loading…
Reference in New Issue
Block a user