summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormohammadrostamiorg2024-01-12 21:23:24 +0330
committermohammadrostamiorg2024-01-12 21:23:24 +0330
commit3228e9b69a1dd4926815797d25a61a65c711ed8f (patch)
tree80f487b2d6a11db72d7357b2fd26f7cbe5b2ddaa
parent628ef8405c005cde85e84c79805c1038a7f521e6 (diff)
downloadaur-3228e9b69a1dd4926815797d25a61a65c711ed8f.tar.gz
Feat : Add ADgaurd and Cloudflear and Add man page
-rw-r--r--dnsch.1.gzbin0 -> 361 bytes
-rwxr-xr-xdnsch.sh11
2 files changed, 8 insertions, 3 deletions
diff --git a/dnsch.1.gz b/dnsch.1.gz
new file mode 100644
index 000000000000..d2c267644d09
--- /dev/null
+++ b/dnsch.1.gz
Binary files differ
diff --git a/dnsch.sh b/dnsch.sh
index b6c33d22af97..3f850ece96f5 100755
--- a/dnsch.sh
+++ b/dnsch.sh
@@ -1,6 +1,5 @@
#!/bin/bash
-
# Check if the script is run as root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
@@ -14,7 +13,7 @@ fi
# Verify that argument is provided
if [[ -z $1 ]]; then
- echo "Usage: $0 {g|sh}"
+ echo "Usage: $0 {g|sh|ag|cf}"
exit 1
fi
@@ -26,9 +25,15 @@ case $1 in
sh)
nameservers=("nameserver 178.22.122.100" "nameserver 185.51.200.2")
;;
+ ag)
+ nameservers=("nameserver 176.103.130.130" "nameserver 176.103.130.131")
+ ;;
+ cf)
+ nameservers=("nameserver 1.1.1.1" "nameserver 1.0.0.1")
+ ;;
*)
echo "Invalid option: $1"
- echo "Usage: $0 {g|sh}"
+ echo "Usage: $0 {g|sh|ag|cf}"
exit 1
;;
esac