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:
parent
b51917a0ce
commit
5778a6dd73
1 changed files with 1 additions and 1 deletions
2
ssl
2
ssl
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue