This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set +H | |
set -e | |
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
cd "${SCRIPT_DIR}" && GIT_DIR=$(git rev-parse --show-toplevel) | |
source "${GIT_DIR}/scripts/GLOBAL_IMPORTS.sh" | |
source "${GIT_DIR}/configs/settings.sh" | |
ConfigGDM() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$NET_ALIAS = (Get-NetAdapter -Physical) | |
$NET_DEVID = $NET_ALIAS.InterfaceGuid | |
$IP = @("9.9.9.9", "149.112.112.112", "2620:fe::fe", "2620:fe::9") | |
$IP.ForEach({ | |
# We're not removing the same DoH entries if it already exists; hence "-ErrorAction SilentlyContinue". | |
Add-DnsClientDohServerAddress -ServerAddress $_ -DohTemplate 'https://dns.quad9.net/dns-query' -AllowFallbackToUdp 0 -AutoUpgrade 1 -ErrorAction SilentlyContinue | |
}) | |
$NET_ALIAS.ForEach({ |