private static function fullyQualify(string $subdomain, string $parent): string
    {
        if ('@' === $subdomain) {
            return $parent;
        }

        if ('.' !== substr($subdomain, -1, 1)) {
            return $subdomain.'.'.$parent;
        }

        return $subdomain;
    }