Document Intelligence Service hostname sometimes does not resolve

Jonathan Nagy 0 Reputation points
2024-11-20T17:46:26.7533333+00:00

I am getting the following exception in an Azure Function, which is attempting to call Document Intelligence services.

Note: All text and images lightly edited for anonymity of resources.

Azure.RequestFailedException: The requested name is valid, but no data of the requested type was found. (mydocaiservicename.cognitiveservices.azure.com:443)
 ---> System.Net.Http.HttpRequestException: The requested name is valid, but no data of the requested type was found. (mydocaiservicename.cognitiveservices.azure.com:443)
 ---> System.Net.Sockets.SocketException (11004): The requested name is valid, but no data of the requested type was found.

This is not consistent, and the call will sometimes succeed and sometimes hit this error. Googling seems to indicate this is a DNS issue. I tried nslookup locally, and I am getting the same inconsistent results.

This looks to be a good result from nslookup:

c:\Users\jnagy\Source>nslookup mydocaiservicename.cognitiveservices.azure.com
Server:  dnsserver.myemployer.com 
Address:  172.16.x.x  
Non-authoritative answer:
Name:    apid69e4f0cd7984aa8a89d9d59fb140df1wjcqcmgrfkzhbxquwxyz.eastus.cloudapp.azure.com
Address:  20.232.x.x 
Aliases:  mydocaiservicename.cognitiveservices.azure.com
          eastus.api.cognitive.microsoft.com
          cognitiveuseprod.trafficmanager.net 
          cognitiveuseprod.azure-api.net           
		  apimgmttmsxrvtifzqdtqhxmfmfanqbnjviisx1axz0axyz.trafficmanager.net           
		  cognitiveuseprod-eastus-01.regional.azure-api.net

This is the occasional bad result:

c:\Users\jnagy\Source>nslookup mydocaiservicename.cognitiveservices.azure.com
Server:  dnsserver.myemployer.com
Address:  172.16.x.x

Non-authoritative answer:
Name:    mydocaiservicename.cognitiveservices.azure.com

A ping unsurprisingly fails when the DNS is in this state:

c:\Users\jnagy\Source>ping mydocaiservicename.cognitiveservices.azure.com 
Ping request could not find host mydocaiservicename.cognitiveservices.azure.com. Please check the name and try again.

I was going to submit an internal ticket related to my companies DNS server, but mxtoolbox.com looked to have issues with the DNS entry as well.

ZpSPsaVTx3

I am wondering if this could possibly be fixed with a setting in the Azure portal, requires a support ticket with Microsoft, or with our own IT infrastructure people.

Azure AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,771 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YutongTie-MSFT 53,321 Reputation points
    2024-11-20T22:34:42.63+00:00

    @Jonathan Nagy Thanks for reaching out to us, we have raised a support ticket for this issue, once the support ticket has been closed, we will share the solution here.

    Regards,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.