Hi KC!
Thanks for reaching out! Right now you could also specify a connection string like this:
mongosh mongodb://host_abc
The validation of the hostname does not happen there.
Just out of curiosity - the _
is the not allowed character in that case. Do you have other characters you have locally that would be regarded as invalid characters but you have as part of your DNS names?
If you want to you could also file a bug report in JIRA directly: https://jira.mongodb.org/projects/MONGOSH/issues. But I’ll take care of that for this request