<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Serverless notebook DNS failure (gai error / name resolution) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/serverless-notebook-dns-failure-gai-error-name-resolution/m-p/142487#M51956</link>
    <description>&lt;P&gt;Hi, thanks for the troubleshooting checklist.&lt;/P&gt;&lt;P&gt;I tried the items above, but I’m still blocked and wanted to share the exact current state + ask what I should check next.&lt;/P&gt;&lt;P&gt;What I’ve done / verified:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Workspace is on AWS, region us-west-2.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Using Serverless notebook (CPU).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;I attached the “ncc_public_internet” Network Connectivity Configuration to the workspace (I can see it on the workspace details page).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Serverless egress control shows the default policy with Access = Full.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;After waiting and starting a fresh session, DNS still fails:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;socket.gethostbyname for a public domain returns “gaierror: Name or service not known”&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;urllib request returns “Temporary failure in name resolution”&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;SQL Warehouse queries work, but any outbound HTTP call from the notebook fails because DNS can’t resolve.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Two extra clues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;When I open “Private access settings” in the account console, the page returns a 403 error (not sure if permissions-related or relevant).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In the account workspace overview, the credential name shows “Serverless only” (maybe this means classic clusters aren’t enabled?).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Question:&lt;BR /&gt;Given NCC is attached and egress policy is “Full”, what else can still block public DNS for Serverless notebooks? Is there a separate account-level setting/entitlement that must be enabled for serverless internet egress, or is “serverless-only” a known limitation where external downloads aren’t allowed?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
    <pubDate>Tue, 23 Dec 2025 20:55:12 GMT</pubDate>
    <dc:creator>bek04</dc:creator>
    <dc:date>2025-12-23T20:55:12Z</dc:date>
    <item>
      <title>Serverless notebook DNS failure (gai error / name resolution)</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-notebook-dns-failure-gai-error-name-resolution/m-p/142383#M51936</link>
      <description>&lt;P&gt;I’m using a Databricks workspace on AWS (region: us-west-2). My Serverless notebook (CPU) cannot access any external URL — every outbound request fails at DNS resolution.&lt;/P&gt;&lt;P&gt;Minimal test in a notebook:&lt;BR /&gt;import urllib.request&lt;BR /&gt;urllib.request.urlopen("&lt;A href="https://www.google.com/robots.txt" target="_blank"&gt;https://www.google.com/robots.txt&lt;/A&gt;", timeout=20)&lt;/P&gt;&lt;P&gt;Errors I get:&lt;BR /&gt;- URLError: &amp;lt;urlopen error [Errno -3] Temporary failure in name resolution&amp;gt;&lt;BR /&gt;- gaierror: [Errno -2] Name or service not known&lt;/P&gt;&lt;P&gt;Notes:&lt;BR /&gt;- SQL Warehouse works normally.&lt;BR /&gt;- Unity Catalog is enabled and I’m using Volumes (/Volumes/...).&lt;BR /&gt;- I already attached/updated the Network Connectivity Configuration (ncc_public_internet), but the notebook still has DNS failures.&lt;/P&gt;&lt;P&gt;What should I check next (network policy / serverless egress control / workspace setting) to enable outbound internet/DNS for Serverless notebooks?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2025 01:49:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-notebook-dns-failure-gai-error-name-resolution/m-p/142383#M51936</guid>
      <dc:creator>bek04</dc:creator>
      <dc:date>2025-12-23T01:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless notebook DNS failure (gai error / name resolution)</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-notebook-dns-failure-gai-error-name-resolution/m-p/142441#M51948</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Here are some troubleshooting steps:&lt;/P&gt;
&lt;H4 class="_9k2iva0 p8i6j0c _1ibi0s312 heading4 _9k2iva1"&gt;1. Network Connectivity Configuration (NCC)&lt;/H4&gt;
&lt;UL class="p8i6j07 p8i6j02"&gt;
&lt;LI class="p8i6j0a"&gt;Confirm that the correct NCC (such as &lt;CODE class="p8i6j0f"&gt;ncc_public_internet&lt;/CODE&gt;) is attached &lt;STRONG&gt;specifically&lt;/STRONG&gt; to Serverless compute, not just to SQL Warehouses or other resources.&lt;/LI&gt;
&lt;LI class="p8i6j0a"&gt;After making changes, allow several minutes for NCC propagation. Sometimes settings take time to apply.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 class="_9k2iva0 p8i6j0c _1ibi0s312 heading4 _9k2iva1"&gt;2. Network Policies &amp;amp; Workspace Settings&lt;/H4&gt;
&lt;UL class="p8i6j07 p8i6j02"&gt;
&lt;LI class="p8i6j0a"&gt;Check whether workspace-level network policies restrict serverless notebook egress to the internet.&lt;/LI&gt;
&lt;LI class="p8i6j0a"&gt;Review unified network policies (IAM roles, security groups, VPC endpoints) associated with your workspace for restrictions especially affecting serverless compute resources.&lt;/LI&gt;
&lt;LI class="p8i6j0a"&gt;Ensure there are &lt;STRONG&gt;no workspace-level blocklists&lt;/STRONG&gt; for outbound traffic, particularly for public DNS (UDP 53) or HTTP/HTTPS ports (TCP 80/443).&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 class="_9k2iva0 p8i6j0c _1ibi0s312 heading4 _9k2iva1"&gt;3. Serverless Egress Controls&lt;/H4&gt;
&lt;UL class="p8i6j07 p8i6j02"&gt;
&lt;LI class="p8i6j0a"&gt;Validate that serverless notebooks are allowed to make &lt;STRONG&gt;external outbound requests&lt;/STRONG&gt; via public internet—some workspaces restrict egress for compliance.&lt;/LI&gt;
&lt;LI class="p8i6j0a"&gt;Confirm that there are no workspace or admin settings that disable “Serverless Workspace egress to public internet.”&lt;/LI&gt;
&lt;LI class="p8i6j0a"&gt;For Unity Catalog-enabled workspaces, verify egress settings within UC context, as newer workspace configurations sometimes require explicit enablement.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 class="_9k2iva0 p8i6j0c _1ibi0s312 heading4 _9k2iva1"&gt;4. DNS Configuration&lt;/H4&gt;
&lt;UL class="p8i6j07 p8i6j02"&gt;
&lt;LI class="p8i6j0a"&gt;Some organizations use custom DNS resolvers or private DNS, which may block serverless resources from reaching the public DNS.&lt;/LI&gt;
&lt;LI class="p8i6j0a"&gt;Check that public DNS resolution (e.g., Google’s 8.8.8.8, AWS’s default) is available, and that your workspace isn’t explicitly configured to use a resolver without internet access.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 class="_9k2iva0 p8i6j0c _1ibi0s312 heading4 _9k2iva1"&gt;5. Workspace Isolation/Security Features&lt;/H4&gt;
&lt;UL class="p8i6j07 p8i6j02"&gt;
&lt;LI class="p8i6j0a"&gt;Inspect whether workspace “secure access” or “private link” features are enabled, as these may block all internet or DNS traffic unless explicitly permitted.&lt;/LI&gt;
&lt;LI class="p8i6j0a"&gt;If PrivateLink or VPC-only network models are in use, ensure there are allowed egress rules.&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4 class="_9k2iva0 p8i6j0c _1ibi0s312 heading4 _9k2iva1"&gt;6. Test Alternative Outbound Methods&lt;/H4&gt;
&lt;UL class="p8i6j07 p8i6j02"&gt;
&lt;LI class="p8i6j0a"&gt;As a diagnostic, attempt DNS resolution with different libraries (e.g., using &lt;CODE class="p8i6j0f"&gt;socket.gethostbyname("&lt;A href="http://www.google.com" target="_blank"&gt;www.google.com&lt;/A&gt;")&lt;/CODE&gt; or through &lt;CODE class="p8i6j0f"&gt;ping&lt;/CODE&gt;) to determine if DNS works at all, or whether any outbound traffic is possible.&lt;/LI&gt;
&lt;LI class="p8i6j0a"&gt;Try accessing other common endpoints besides Google (e.g., &lt;CODE class="p8i6j0f"&gt;&lt;A href="http://example.com" target="_blank"&gt;http://example.com&lt;/A&gt;&lt;/CODE&gt;)—sometimes specific domains are blocked but not all traffic.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 23 Dec 2025 15:31:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-notebook-dns-failure-gai-error-name-resolution/m-p/142441#M51948</guid>
      <dc:creator>emma_s</dc:creator>
      <dc:date>2025-12-23T15:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless notebook DNS failure (gai error / name resolution)</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-notebook-dns-failure-gai-error-name-resolution/m-p/142487#M51956</link>
      <description>&lt;P&gt;Hi, thanks for the troubleshooting checklist.&lt;/P&gt;&lt;P&gt;I tried the items above, but I’m still blocked and wanted to share the exact current state + ask what I should check next.&lt;/P&gt;&lt;P&gt;What I’ve done / verified:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Workspace is on AWS, region us-west-2.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Using Serverless notebook (CPU).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;I attached the “ncc_public_internet” Network Connectivity Configuration to the workspace (I can see it on the workspace details page).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Serverless egress control shows the default policy with Access = Full.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;After waiting and starting a fresh session, DNS still fails:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;socket.gethostbyname for a public domain returns “gaierror: Name or service not known”&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;urllib request returns “Temporary failure in name resolution”&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;SQL Warehouse queries work, but any outbound HTTP call from the notebook fails because DNS can’t resolve.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Two extra clues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;When I open “Private access settings” in the account console, the page returns a 403 error (not sure if permissions-related or relevant).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;In the account workspace overview, the credential name shows “Serverless only” (maybe this means classic clusters aren’t enabled?).&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Question:&lt;BR /&gt;Given NCC is attached and egress policy is “Full”, what else can still block public DNS for Serverless notebooks? Is there a separate account-level setting/entitlement that must be enabled for serverless internet egress, or is “serverless-only” a known limitation where external downloads aren’t allowed?&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Dec 2025 20:55:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-notebook-dns-failure-gai-error-name-resolution/m-p/142487#M51956</guid>
      <dc:creator>bek04</dc:creator>
      <dc:date>2025-12-23T20:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Serverless notebook DNS failure (gai error / name resolution)</title>
      <link>https://community.databricks.com/t5/data-engineering/serverless-notebook-dns-failure-gai-error-name-resolution/m-p/142508#M51959</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/201781"&gt;@bek04&lt;/a&gt; &amp;nbsp;can you please try once with direct ip address bypassing DNS, this will explain if egress is the issue or DNS. like :&amp;nbsp;&lt;SPAN&gt;&lt;!--    ScriptorStartFragment    --&gt;urllib.request.urlopen("&lt;A href="https://142.250.74.206/robots.txt" target="_blank" rel="noopener"&gt;https://142.250.74.206/robots.txt", timeout=20).read()[:100] ??&lt;BR /&gt;&lt;BR /&gt;&lt;!--    ScriptorEndFragment    --&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--    ScriptorStartFragment    --&gt;nslookup &lt;A href="http://www.google.com" target="_blank" rel="noopener"&gt;www.google.com&lt;!--    ScriptorEndFragment    --&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;!--    ScriptorStartFragment    --&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;import socket&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;socket.getaddrinfo("&lt;A href="http://www.google.com" target="_blank" rel="noopener"&gt;www.google.com", 443)&lt;!--    ScriptorEndFragment    --&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;Is you NCC VPC setup or workspace VPC either using custom DNS ? like enterprise level dns whether on-prem or custom dns then maybe good to check if&amp;nbsp; those servers forward public queries? becasue i believe workspace level policies like custom dns may influence how serverless works.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Dec 2025 09:35:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/serverless-notebook-dns-failure-gai-error-name-resolution/m-p/142508#M51959</guid>
      <dc:creator>saurabh18cs</dc:creator>
      <dc:date>2025-12-24T09:35:35Z</dc:date>
    </item>
  </channel>
</rss>

