Reduce # of domains to 100 for performance

This commit is contained in:
Markus Fleschutz 2023-09-11 19:49:35 +02:00
parent 37601075c8
commit 2bf762f3b3
2 changed files with 6 additions and 106 deletions

View File

@ -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 DOMAIN
2 a.root-servers.net
accounts.google.com
activity.windows.com
airbnb.at
3 airbnb.com
airbnb.de
4 aka.ms
alternate.de
api.dropboxapi.com
5 api.met.no
api.serenade.ai
api1.origin.com
6 arc.msn.com
7 arte.tv
8 assets.msn.com
9 amazon.com
amazon.co.uk
amazon.de
amazon.fr
amazon.it
10 b.root-servers.net
banking.ing-diba.de
11 bing.com
bing.de
bing.fr
12 bitbucket.org
blitzortung.org
bolt.dropbox.com
13 c.root-servers.net
catalog.gamepass.com
changelogs.ubuntu.com
14 client.dropbox.com
client.wns.windows.com
clients1.google.com
clients2.google.com
clients3.google.com
clients4.google.com
15 contacts.google.com
16 d.dropbox.com
17 d.root-servers.net
dasoertliche.de
deepl.com
18 dell.com
de.yahoo.com
19 discord.com
20 discordapp.com
dhl.de
download.windowsupdate.com
21 duckduckgo.com
22 e.root-servers.net
23 earth.google.com
24 ebay.com
ebay.de
ebay.fr
ebook3000.com
25 edition.cnn.com
26 f.root-servers.net
27 facebook.com
facebook.de
facebook.fr
28 flightradar24.com
29 fonts.google.com
30 fonts.googleapis.com
fonts.gstatic.com
31 foto-webcam.eu
32 foursquare.com
33 g.root-servers.net
34 github.com
github.map.fastly.net
35 gmail.com
google.at
36 google.com
google.de
google.fr
google.it
googleapis.com
37 gstatic.com
38 h.root-servers.net
holidaycheck.de
hornbach.de
39 i.root-servers.net
i.ytimg.com
40 IEEE.org
41 ibm.com
42 icons8.com
43 imap.googlemail.com
install.robertsspaceindustries.com
ipfs.io
ipv6.msftconnecttest.com
44 j.root-servers.net
45 k.root-servers.net
46 l.root-servers.net
launcher2.robertsspaceindustries.com
licensing.mp.microsoft.com
47 live.github.com
live.thunderbird.net
livepatch.canonical.com
48 login.live.com
longfiles.com
49 m.root-servers.net
50 mail.google.com
map.blitzortung.org
51 maps.google.com
maps.google.de
maps.google.fr
52 microsoft.com
53 mozilla.org
mtalk.google.com
54 music.google.com
55 news.google.com
news.google.de
news.google.fr
56 news.url.google.com
57 ntp.ubuntu.com
ogs.google.com
58 open.spotify.com
59 opera.com
60 photos.google.com
61 pixabay.com
62 play.google.com
63 plex.tv
presence.teams.microsoft.com
ptbtime1.ptb.de
ptbtime2.ptb.de
ptbtime3.ptb.de
64 redhat.com
reichelt.de
robertsspaceindustries.com
secure.download.dm.origin.com
semonkeys.net
settings.data.microsoft.com
settings-win.data.microsoft.com
65 sites.google.com
66 slashdot.org
67 speed.cloudflare.com
68 speedtest.net
ssl.gstatic.com
69 stackoverflow.com
start.thunderbird.net
static.nvidiagrid.net
storage.googleapis.com
substrate.office.com
70 sunnyportal.com
t-online.de
t0.gstatic.com
71 teams.microsoft.com
telemetry.dropbox.com
tile-service.weather.microsoft.com
72 time.windows.com
toggl.com
toom.de
track.toggl.com
translate.google.de
twitter.com
twitter.de
73 ubuntu.com
74 update.googleapis.com
75 wetter.com
76 wttr.in
77 www.apple.com
78 www.arte.tv
www.bbc.co.uk
www.bild.de
79 www.booking.com
www.cdc.gov
80 www.dropbox.com
81 www.ecosia.org
82 www.etsy.com
83 www.expedia.com
84 www.fleschutz.de
www.focus.de
www.foto-webcam.eu
www.golem.de
85 www.google.com
www.googleapis.com
86 www.gstatic.com
www.heise.de
www.hulu.com
87 www.instagram.com
88 www.msn.com
89 www.nasa.gov
91 www.nytimes.com
92 www.paypal.com
93 www.redbull.com
www.schneier.com
www.techstage.de
94 www.tiktok.com
95 www.ufainc.com
96 www.walmart.com
97 www.whatsapp.com
98 www.whitehouse.gov
99 www.windy.com
www.wikipedia.at
www.wikipedia.de
www.wikipedia.fr
100 www.wikipedia.org
www.wired.com
101 www.youtube.com
www.zdf.de

View File

@ -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