fi
}
-# Check for a valid domain name as per RFC1123 with the exception of
-# allowing - and _ as they seem to be widely used.
+# Check for a valid name as per RFC952 and RFC1123 section 2.1
valid_domainname()
{
local name="$1" label
return (ssize_t)o_len;
}
-/* Check for a valid domain name as per RFC1123 with the exception of
- * allowing - and _ (but not at start or end) as they seem to be widely used. */
+/* Check for a valid name as per RFC952 and RFC1123 section 2.1 */
static int
valid_domainname(char *lbl, int type)
{