Add support for local host IPs (#8)

If there's a local host entry for the domain.

Resolve only the `A` record without trying to ping it, since some servers disable ping support. This should still work with CNAME based domains.
This commit is contained in:
codebymikey 2024-01-29 18:38:59 +00:00 committed by GitHub
parent b51917a0ce
commit 5778a6dd73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
ssl
View file

@ -66,7 +66,7 @@ fi
# Check if there is an input
##
if [[ $1 ]]; then
host $1 > /dev/null
host -t A $1 > /dev/null
if [ $? -eq 0 ]; then
echo -e "$(ColorRed '#') $(ColorGreen 'Checking Domain/Hostname:')\n\t$1"
else