From a0a0c35dce7c34f3d20da1118921bd2d4bc2b4fc Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 11 Jun 2020 14:15:23 +0000 Subject: [PATCH] Simple rename --- Scripts/refresh_dns_cache.ps1 | 15 --------------- Scripts/train_dns_cache.ps1 | 17 +++++++++++++++++ .../{refresh_domains.csv => train_domains.csv} | 5 ++++- 3 files changed, 21 insertions(+), 16 deletions(-) delete mode 100755 Scripts/refresh_dns_cache.ps1 create mode 100755 Scripts/train_dns_cache.ps1 rename Scripts/{refresh_domains.csv => train_domains.csv} (89%) diff --git a/Scripts/refresh_dns_cache.ps1 b/Scripts/refresh_dns_cache.ps1 deleted file mode 100755 index 4139b547..00000000 --- a/Scripts/refresh_dns_cache.ps1 +++ /dev/null @@ -1,15 +0,0 @@ -#!/snap/bin/powershell -# -# PowerShell Script to Refresh the DNS Cache -# ------------------------------------------ -# Author: Markus Fleschutz -# Source: github.com/fleschutz/PowerShell -# License: CC0 - -$DomainTable = import-csv refresh_domains.csv - -foreach($Line in $DomainTable) { - $Ignore = Invoke-WebRequest $Line.Domain -} -write-host "Done." -exit 0 diff --git a/Scripts/train_dns_cache.ps1 b/Scripts/train_dns_cache.ps1 new file mode 100755 index 00000000..ee94d910 --- /dev/null +++ b/Scripts/train_dns_cache.ps1 @@ -0,0 +1,17 @@ +#!/snap/bin/powershell +# +# PowerShell Script to Train the DNS Cache +# ---------------------------------------- +# Author: Markus Fleschutz +# Source: github.com/fleschutz/PowerShell +# License: CC0 + +$DomainTable = import-csv refresh_domains.csv + +foreach($Row in $DomainTable) { + $DomainName = $Row.Domain + write-progress "Training $DomainName ..." + $Ignore = dig $DomainName +} +write-host "Done." +exit 0 diff --git a/Scripts/refresh_domains.csv b/Scripts/train_domains.csv similarity index 89% rename from Scripts/refresh_domains.csv rename to Scripts/train_domains.csv index 857e9d48..57db891c 100644 --- a/Scripts/refresh_domains.csv +++ b/Scripts/train_domains.csv @@ -1,6 +1,8 @@ Domain +aldi-nord.de aldi-sued.de all-in.de +alternate.de amazon.com amazon.de bild.de @@ -16,9 +18,10 @@ golem.de google.com heise.de lidl.de +microsoft.com redhat.com slashdot.com -microsoft.com +tchibo.de twitter.com twitter.de ubuntu.com