257 — TransactionTooLarge
networkingconnectivity
DNS resolution failed for the specified hostname
What is happening?
DNSHostNotFound is returned when a DNS lookup for a hostname in the connection string or SRV record fails completely. Unlike HostNotFound (7) which can occur at the TCP level, this error specifically indicates the DNS resolver returned NXDOMAIN or a similar negative response. It is common with mongodb+srv:// connection strings when the SRV or TXT records are missing.
Common causes
- Incorrect cluster hostname in the connection string
- SRV record does not exist for the specified mongodb+srv:// domain
- DNS server is unreachable or not responding
- Private DNS zone not accessible from the application's network
- Cluster was deleted but the connection string was not updated