Error connecting to serverless cluster

As listed here - ATLAS Serverless and DNS txt record
, the MongoDB maven central repository does not seem to have updated client jar. Is there something that can be done to avoid such DNS issues?

com.mongodb.MongoConfigurationException: Unable to look up TXT record for host serverlesscluster0.*****.mongodb.net

https://mvnrepository.com/artifact/org.mongodb/mongo-java-driver