Azure VMs domain joined to on-prem AD . able to ping each other by IP address only and not host name

MS Techie 2,681 Reputation points

We have Azure VMs domain joined to on-prem AD . which are able to ping each other by IP address only and not host name.

i was thinking if i domain join azure VMs to on-prem AD , then the DNS resolution should be fine and i can ping the VMs by their FQDN and it should resolve to IP addresses . But that is not happenning.

I can only ping by using IP address

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,369 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alistair Ross 7,106 Reputation points Microsoft Employee

    Hi @MS Techie

    Without knowing your exact setup, I cannot give you an exact answer, however based on the replies to my comment, I can summarise that

    • You may or may not have a network route back to your on-premises network (I forgot to get you to ping via IP from VM Server to on-prem server).
    • You do not have full DNS Resolution.

    The first step is to ascertain how your traffic is getting from Azure to on-prem.
    Once you have the relevant routes in place, you should be able to ping from Azure to on-prem via IP address.

    Next you need to ensure that you can perform name resolution from Azure to on-prem. By default, the VM's get their IP addresses and DNS servers from the vNet they are connected to, utilising Azure DNS. You can either change this, so they are provided the IP Addresses of your on-prem name servers. Alternatively, you could set up Private DNS zones in Azure to perform initial name resolution, with forwarders to the on-prem name servers.

    kind regards

    Alistair Ross

    0 comments No comments