ENOTFOUND error connecting with MongoDB Compass

Hello Team,

we are connecting to Mongo using Mongo compass.

mongodb://10.210.126.16:27017,10.210.126.17:27017,10.210.126.19:27017/?authSource=admin&readPreference=primary&appname=MongoDB%20Compass&ssl=false

We are getting error:
getaddrinfo ENOTFOUND rh-hadoop-07.mtg.local

All the IPs are on DNS.

Kindly advise

Since your DNS error is with

your problem lies somewhere else and it is not related to the URI of your cluster.