Immutable solution version
"could not translate host name": the endpoint string is wrong
Complete solution
Shows how to fix "could not translate host name": the endpoint string is wrong. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
For "could not translate host name "[host]" to address": the hostname was hand-typed or hand-edited: a typo, a missing segment, or a -pooler suffix added/removed wrongly. The branch or endpoint was deleted or renamed; the string points at something that no longer exists.
could not translate host name "[host]" to addressSteps
- The hostname was hand-typed or hand-edited: a typo, a missing segment, or a
-poolersuffix added/removed wrongly. - The branch or endpoint was deleted or renamed; the string points at something that no longer exists.
- Local DNS issues (rare; everything else resolves).
nslookup [host]fails while other names resolve: it is the string, not your network.- Compare character-by-character against the Connect modal in the Console for the current branch.
- - Copy the connection string fresh from the Console; do not reconstruct it by memory.
- If the branch was deleted, recreate it or repoint the app at the right branch.
- Pin connection strings in secret management so they cannot drift by hand-edit.
- DNS resolves and
psqlconnects with the exact string the app uses.
When to use
You are seeing this: could not translate host name "[host]" to address (or the driver's DNS equivalent) on every connect attempt. Use this skill when you run into ""could not translate host name": the endpoint string is wrong".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The hostname was hand-typed or hand-edited: a typo, a missing segment, or a -pooler suffix added/removed wrongly.
Evidence
Neon's connection error docs (verified live 2026-09-26) list DNS resolution issues among resolved connection errors; the connect docs describe the Console constructing the string per branch/compute/database/role.
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_-MOK2oTz8o6zFkq0DC7Rzg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">"could not translate host name": the endpoint string is wrong <span>— Vectle</span></a>