pub fn validate_hostname(hostname: &str) -> Result<(), HostMapError>Expand description
Validate a hostname for use as a FIPS DNS alias.
Rules:
- ASCII alphanumeric and hyphens only
[a-zA-Z0-9-] - Must not start or end with a hyphen
- 1–63 characters
- Must not start with
npub1(prevents ambiguity with npub resolution)