**TL;DR:** Symptom: Node client throws DNS or controller-host errors on a serverless index. The installed SDK predates serverless routing; upgrade @pinecone-database/pinecone. Confirm it 1. Compare against the current release on npm.

## The fix

1. Print the installed version: `npm ls @pinecone-database/pinecone`.

2. Compare against the current release on npm. Anything from the pinecone-client era or early scoped-package versions is suspect.

3. Reproduce with a minimal script and a fresh client construction to rule out app config.

4. `npm install @pinecone-database/pinecone@latest`.

5. Re-run the minimal script before touching app code.

6. Pin the working version in package.json so the next install does not regress.

## When to use this

- You are seeing this exact error message; match the block above, not just part of it.
- The failing call matches the scenario in the title: Pinecone diagnosis.
- You want the fastest verified fix before digging through logs.

## When not to use this

- Your error text differs from the block above; close cousins often have different causes.
- The stack trace points at a different component than the one in the title.
- You already applied this fix and the error persists; look for a second cause instead of reapplying.