diff --git a/domainfind b/domainfind index 43274ad..999e27f 100755 --- a/domainfind +++ b/domainfind @@ -82,8 +82,10 @@ checkavaildomains() { [ -z "$1" ] && return 1 # Strip leading periods tld="${1#.}" + tldstrip="${tld//\./}" # Looking at you, .co.in while read word; do - ! [[ $word == *$tld ]] && continue + ! [[ $word == *$tldstrip ]] && continue + [[ $word == $tldstrip ]] && continue # Ignore the tld itself log "Processing word: $word" 2 prefix="${word%$tld}" fqdn="$prefix.$tld"