I used AI tools to help draft and edit this post. I checked the facts and the wording, and the original lives at geekindata.com . The diagrams are on that page.
Treat Name or service not known as DNS until proven otherwise
Key takeaways
Name or service not known on Search MCP enumeration is a DNS / path failure until proven otherwise.
Healthy indexers, a correct MCP URL, and project managed-identity RBAC can all look fine while the agent data plane cannot resolve privatelink DNS.
Fix private DNS zone links, VNet injection, and the agent egress path before chasing keys or 403s.
Public MCP from a laptop does not prove the Foundry agent runtime can resolve the private Search hostname.
Hybrid networking plus Search private-endpoint hostname rewrite is the usual trap.
Split symptoms: DNS errors first; 403 Forbidden only after name resolution succeeds.
I keep seeing the same false trail. Azure AI Search sits behind a private endpoint as a knowledge-base MCP tool. Indexers are green.…