codex - 💡(How to fix) Fix VS Code Codex extension DNS failures: Could not resolve any host name [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#21218Fetched 2026-05-06 06:24:39
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3
RAW_BUFFERClick to expand / collapse

What version of the IDE extension are you using?

26.429.30905

What subscription do you have?

Enterprise

Which IDE are you using?

VS Code

What platform is your computer?

Darwin 25.4.0 arm64 arm

What issue are you seeing?

Environment:

  • macOS
  • VS Code
  • Extension: openai.chatgpt-26.429.30905-darwin-arm64
  • Codex CLI: codex-cli 0.125.0

What happens: When activating/using the Codex VS Code extension, the extension-side Codex process fails DNS/network requests.

Relevant log: 2026-05-05 17:11:44.659 fatal: unable to access 'https://github.com/openai/plugins.git/': Could not resolve host: github.com

Also saw repeated TypeError: fetch failed / timeouts to:

  • chatgpt.com
  • api.github.com
  • ab.chatgpt.com

Important detail: From a normal terminal DNS does not work, ping google.com hangs, but ping 8.8.8.8 works

What steps can reproduce the bug?

  1. Open VS Code on macOS with the OpenAI ChatGPT/Codex extension installed.

  2. Open a trusted workspace.

  3. Open the Codex side panel or start a Codex conversation so the extension activates.

  4. Wait for Codex to initialize and sync plugins/apps.

  5. Check the Codex extension log at: ~/Library/Application Support/Code/logs/<latest>/window*/exthost/openai.chatgpt/Codex.log

  6. Observe DNS/network failures from the extension-side Codex process, for example: fatal: unable to access 'https://github.com/openai/plugins.git/': Could not resolve host: github.com

  7. In a normal macOS terminal outside VS Code, run: ping google.com

What is the expected behavior?

No response

Additional information

No response

extent analysis

TL;DR

The issue is likely due to a DNS resolution problem on the macOS system, and a potential workaround is to configure the system to use a specific DNS server.

Guidance

  • The error messages indicate a failure to resolve hosts like github.com, suggesting a DNS resolution issue.
  • The fact that ping 8.8.8.8 works but ping google.com hangs from a normal terminal implies a DNS configuration problem.
  • To verify the DNS issue, try running dig google.com or nslookup google.com in the terminal to see if DNS resolution works.
  • Consider configuring the macOS system to use a specific DNS server, such as Google's public DNS (8.8.8.8) or Cloudflare's DNS (1.1.1.1), to see if it resolves the issue.

Example

No code snippet is provided as it's not directly relevant to the issue, but an example of configuring DNS on macOS can be found in the system's Network settings.

Notes

The issue seems to be system-specific and not directly related to the VS Code extension or Codex itself. The provided steps to reproduce the bug are helpful in isolating the problem.

Recommendation

Apply workaround: Configure the system to use a specific DNS server, as this is likely to resolve the DNS resolution issue and allow the Codex extension to function properly.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix VS Code Codex extension DNS failures: Could not resolve any host name [1 participants]