Skip to content

Commit

Permalink
Add local dns
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxattax97 committed Sep 17, 2024
1 parent 407a041 commit 830907a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/check-dns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ check_dns() {
nameserver=$3

printf "%s" "${authority}"
dig "$domain" "@${nameserver}"
dig "$domain" "@${nameserver}" +tries=1
}

domain="www.maxocull.com"
Expand All @@ -17,3 +17,4 @@ check_dns "$domain" "Google" "8.8.8.8"
check_dns "$domain" "Quad9" "9.9.9.9"
check_dns "$domain" "Cloudflare" "1.1.1.1"
check_dns "$domain" "DuckDNS" "ns1.duckdns.org"
check_dns "$domain" "Local DNS" "192.168.1.1"

0 comments on commit 830907a

Please sign in to comment.