resolve-mongodb-srv

JSON →
library 1.1.7 ·javascript
verified Jun 5, 2026

Resolves mongodb+srv:// connection strings to mongodb:// URLs according to the MongoDB Initial DNS Seedlist Discovery specification. Acts as a pure DNS resolver, not a MongoDB driver. Version 1.1.7 is stable, released on npm. Supports ESM and includes TypeScript types. Lightweight with no runtime dependencies aside from Node.js DNS. Use when you need to resolve SRV records before passing to a MongoDB client.