checkFQDNOrIP

Description: Checks if a string contains only characters that are allowed in a FQDN or is an IP.
Parameter: