You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Propagate host.docker.internal DNS to spawned containers #422
Hi @Mossaka thanks for the great work! upvoting this issue. We are currently trying the agentic workflows running on dedicated self-hosted runners with mandatory corporate DNS servers. This breaks the current implementation as squid hardcodes google's DNS in its squid.conf which makes the agentic workflows unusable for us in a DNS restricted environment.
From copilot debug session
Now I have a clear picture. The root cause is confirmed:
The Squid proxy in the AWF container is hardcoded to use Google DNS (`dns_nameservers 8.8.8.8 8.8.4.4`), but the runner is in a private VPC where:
1. The runner's own DNS resolver (via the AWS VPC DNS at `X.X.X.X` or similar) can resolve `api.githubcopilot.com` successfully
2. But Google's DNS (8.8.8.8/8.8.4.4) is blocked or inaccessible from within the VPC, causing `ERR_DNS_FAIL` with "No DNS records"
3. The "No DNS records" error from Squid indicates the DNS server itself is unreachable or timing out, not that the domain doesn't exist
This is a known limitation when running AWF with self-hosted runners in private networks. The real fix needs to come from the gh-aw side—the AWF should delegate to the host's DNS resolver instead of forcing Google's public DNS.
squid logs
</head><bodyid="ERR_DNS_FAIL"><divid="titles"><h1>ERROR</h1><h2>The requested URL could not be retrieved</h2></div><hr><divid="content"><p>The following error was encountered while trying to retrieve the URL: <ahref="https://api.githubcopilot.com/*">https://api.githubcopilot.com/*</a></p><blockquoteid="error"><p><b>Unable to determine IP address from host name <q>api.githubcopilot.com</q></b></p></blockquote><p>The DNS server returned:</p><blockquoteid="data"><pre>No DNS records</pre></blockquote>
extract from squid.conf
# Disable caching
cache deny all
# DNS settings - Squid resolves all domains for HTTP/HTTPS traffic
dns_nameservers 8.8.8.8 8.8.4.4
# Forwarded headers
forwarded_for delete
via off
Hi @Mossaka circling back here, are you able to provide an ETA for this feature as it is a roadblocker for enterprise usage within restricted environments? Thanks!
Hi @github-antoine-brechon , yeah this is a slightly different issue. You are right that the default of Google DNS breaks enterprise environments out of the box. I will be working on to fix it.
FWIW, awf already supports --dns-servers flag, which you can run awf --dns-servers 10.0.0.2 to solve your problem at the awf level. But gh-aw doesn't pass --dns-servers to awf and there's no workflow frontmatter field for it.
The child container propagation part of this issue depends on Docker-in-Docker, which is being fully removed (#1727). Without DinD, there are no child containers to propagate host.docker.internal to.
The readonly AWF_ENABLE_HOST_ACCESS hardening is still valuable — extracting to a separate issue.
Also found a real bug while working on this: docker-manager.ts sets AWF_ENABLE_HOST_ACCESS = 'true' in the allowHostServicePorts safety net, but entrypoint.sh and setup-iptables.sh check for = "1". This means the safety net silently fails. Filing a separate bug fix.
Activity
github-actions commentedon Jan 26, 2026
🍪 Issue Monster has assigned this to Copilot!
I've identified this issue as a good candidate for automated resolution and assigned it to the Copilot agent.
The Copilot agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
github-actions commentedon Feb 5, 2026
🍪 Issue Monster has assigned this to Copilot!
I've identified this issue as a good candidate for automated resolution and assigned it to the Copilot agent.
The Copilot agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
gh-antoine-brechon commentedon Mar 30, 2026
Hi @Mossaka thanks for the great work! upvoting this issue. We are currently trying the agentic workflows running on dedicated self-hosted runners with mandatory corporate DNS servers. This breaks the current implementation as squid hardcodes google's DNS in its squid.conf which makes the agentic workflows unusable for us in a DNS restricted environment.
From copilot debug session
squid logs
extract from squid.conf
gh-antoine-brechon commentedon Mar 31, 2026
Hi @Mossaka circling back here, are you able to provide an ETA for this feature as it is a roadblocker for enterprise usage within restricted environments? Thanks!
Mossaka commentedon Mar 31, 2026
Hi @github-antoine-brechon , yeah this is a slightly different issue. You are right that the default of Google DNS breaks enterprise environments out of the box. I will be working on to fix it.
FWIW,
awfalready supports --dns-servers flag, which you can runawf --dns-servers 10.0.0.2to solve your problem at the awf level. But gh-aw doesn't pass--dns-serverstoawfand there's no workflow frontmatter field for it.feat: propagate host.docker.internal to child containers (#422)
Mossaka commentedon Apr 6, 2026
closing this issue as the agent container cannot spawn containers.
Mossaka commentedon Apr 6, 2026
The child container propagation part of this issue depends on Docker-in-Docker, which is being fully removed (#1727). Without DinD, there are no child containers to propagate
host.docker.internalto.The
readonly AWF_ENABLE_HOST_ACCESShardening is still valuable — extracting to a separate issue.Also found a real bug while working on this:
docker-manager.tssetsAWF_ENABLE_HOST_ACCESS = 'true'in theallowHostServicePortssafety net, butentrypoint.shandsetup-iptables.shcheck for= "1". This means the safety net silently fails. Filing a separate bug fix.