Get all IPs of a domain in Windows
PowerShell :
[System.Net.Dns]::GetHostEntry('google.com').AddressList.IPAddressToString
References
https://www.kjctech.net/powershell-tip-how-to-get-all-ips-assigned-to-a-dns-domain/
PowerShell :
[System.Net.Dns]::GetHostEntry('google.com').AddressList.IPAddressToString
References
https://www.kjctech.net/powershell-tip-how-to-get-all-ips-assigned-to-a-dns-domain/
dig a google.com
dig a google.com +short @8.8.8.8
References
https://superuser.com/questions/152576/how-to-get-all-ips-of-a-domain
https://superuser.com/questions/847575/how-do-i-find-all-known-ips-for-a-given-domain-in-linux
You can force a flush of all cached DNS records using the following command:
ipconfig /flushdns
a list of all the records in your cache along with their TTL by executing the following command at the command prompt:
ipconfig /displaydns
References
https://superuser.com/questions/80744/how-often-does-the-dns-cache-clear
https://cloudflare-dns.com/dns-query
References
https://dnsprivacy.org/public_resolvers/
Download and install the cloudflared daemon
Or Download and install cloudflared
via the Cloudflare Package Repository.
Ubuntu 20.04 LTS (Focal Fossa)
# Add cloudflare gpg key sudo mkdir -p --mode=0755 /usr/share/keyrings curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | sudo tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null # Add this repo to your apt repositories echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared focal main' | sudo tee /etc/apt/sources.list.d/cloudflared.list # install cloudflared sudo apt-get update && sudo apt-get install cloudflared
cloudflared --version
Run without systemd
cloudflared proxy-dns #cloudflared proxy-dns --port 5553
Run with systemd
sudo tee /etc/systemd/system/cloudflared-proxy-dns.service >/dev/null <<EOF [Unit] Description=DNS over HTTPS (DoH) proxy client Wants=network-online.target nss-lookup.target Before=nss-lookup.target [Service] AmbientCapabilities=CAP_NET_BIND_SERVICE CapabilityBoundingSet=CAP_NET_BIND_SERVICE DynamicUser=yes ExecStart=/usr/local/bin/cloudflared proxy-dns [Install] WantedBy=multi-user.target EOF
sudo systemctl enable --now cloudflared-proxy-dns
sudo rm -f /etc/resolv.conf
echo nameserver 127.0.0.1 | sudo tee /etc/resolv.conf >/dev/null
Finally, verify it locally with:
dig +short @127.0.0.1 cloudflare.com AAAA
Update cloudflared
cloudflared update
References
https://developers.cloudflare.com/1.1.1.1/encryption/dns-over-https/dns-over-https-client/
https://pkg.cloudflare.com/index.html
The correct configuration for an executable that does not fork is to use Type=simple
.
[Unit] Description=djalbat.com [Service] Type=simple WorkingDirectory=/var/www/djalbat.com/ ExecStart=/usr/bin/node ./bin/main.js start 2>&1 >> /var/log/djalbat.com.log [Install] WantedBy=multi-user.target
References
https://askubuntu.com/questions/1004853/systemd-is-hanging-when-i-start-or-restart-a-service
[Index(nameof(Url))] public class Blog { public int BlogId { get; set; } public string Url { get; set; } }
Composite index
[Index(nameof(FirstName), nameof(LastName))] public class Person { public int PersonId { get; set; } public string FirstName { get; set; } public string LastName { get; set; } }
Index uniqueness
[Index(nameof(Url), IsUnique = true)] public class Blog { public int BlogId { get; set; } public string Url { get; set; } }
Index sort order
[Index(nameof(Url), nameof(Rating), AllDescending = true)] public class Blog { public int BlogId { get; set; } public string Url { get; set; } public int Rating { get; set; } }
[Index(nameof(Url), nameof(Rating), IsDescending = new[] { false, true })] public class Blog { public int BlogId { get; set; } public string Url { get; set; } public int Rating { get; set; } }
Index name
[Index(nameof(Url), Name = "Index_Url")] public class Blog { public int BlogId { get; set; } public string Url { get; set; } }
References
https://learn.microsoft.com/en-us/ef/core/modeling/indexes?tabs=data-annotations
# generated by dependadotnet # https://github.com/dotnet/core/tree/main/samples/dependadotnet version: 2 updates: - package-ecosystem: "nuget" directory: "/azure/sdk-identity-resources-storage" #AzureIdentityStorageExample.csproj schedule: interval: "weekly" day: "wednesday" open-pull-requests-limit: 5 - package-ecosystem: "nuget" directory: "/csharp/expression-trees" #expression-trees.csproj schedule: interval: "weekly" day: "wednesday" open-pull-requests-limit: 5 - package-ecosystem: "nuget" directory: "/core/assembly/MetadataLoadContext" #MetadataLoadContextSample.csproj schedule: interval: "weekly" day: "wednesday" open-pull-requests-limit: 5
References
https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
https://github.com/dotnet/samples/blob/main/.github/dependabot.yml
var dateNow = DateOnly.FromDateTime(DateTime.Now);
var timeNow = TimeOnly.FromDateTime(DateTime.Now);
References
https://stackoverflow.com/questions/69798302/datetime-now-equivalent-for-timeonly-and-dateonly
Open Programs and Features
in Control Panel and Install Hyper V
and Windows Subsystem for Linux
Download latest WSL from here and install
Now you can install Ubuntu from Microsoft Store
References
https://aka.ms/wsl2kernel