Hi MongoDB Community,
I have been using MongoDB 5.0.1. I am converting a few bash scripts from mongo to mongosh. I noticed MongoDB shell is rejecting hostnames with an underscore in the name “_” (and other characters which are not to DNS standards). These are accepted by the mongo command.
$ mongosh --host host_abc MongoshInvalidInputError: [COMMON-10001] The --host argument contains an invalid character: _ $
For better or worse there are non standard DNS names in use on many networks which may not be easy to change. Is there any way around this hostname validation?
I am new to MongoDB. Is this the correct forum to raise these types of issues?