Web App cannot resolve hostname

J Tech 0 Reputation points
2024-06-26T20:24:28.0833333+00:00

I have a web app and need it to resolve the hostname of an Azure server. When I go to console and tcpping the hostname, I get a host such host message. Both are part of the same VNet and are in the same location. I have the DNS server listed in the VNet. It will resolve with the FQDN but I need the short name to also resolve. Any ideas?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,878 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
957 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Luis Arias 6,966 Reputation points
    2024-06-26T21:00:59.5066667+00:00

    Hi J Tech,

    Please follow this thread https://learn.microsoft.com/en-us/answers/questions/85359/azure-app-service-unable-to-resolve-hostname-of-vi

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    Regards,

    Luis


  2. J Tech 0 Reputation points
    2024-06-26T21:57:07.7633333+00:00

    I was able to get the web app to resolve the short name by adding a hybrid connection. It works well enough for me


  3. Grmacjon-MSFT 18,451 Reputation points
    2024-07-01T19:04:15.3866667+00:00

    Hi @J Tech I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:

    -You had a web app and need it to resolve the hostname of an Azure server but your Web App could resolve the hostname

    -You had the DNS server listed in the VNet that resolve with the FQDN but I wanted the short name to also resolve.

    Solution:

    -You were able to get the web app to resolve the short name by adding a hybrid connection which resolved your issue.

    Thank you again for sharing the solution that worked for you.

    Best,

    Grace

    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.