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
2
ssl
2
ssl
@ -66,7 +66,7 @@ fi
|
|||||||
# Check if there is an input
|
# Check if there is an input
|
||||||
##
|
##
|
||||||
if [[ $1 ]]; then
|
if [[ $1 ]]; then
|
||||||
host $1 > /dev/null
|
host -t A $1 > /dev/null
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo -e "$(ColorRed '#') $(ColorGreen 'Checking Domain/Hostname:')\n\t$1"
|
echo -e "$(ColorRed '#') $(ColorGreen 'Checking Domain/Hostname:')\n\t$1"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user