How to configure VNET DNS resolution for two different linked domains at the same time?

Benollins-5339 0 Reputation points
2024-04-30T13:45:10.76+00:00

Hi, We have a domain on-prem which is connected via VPN tunnel to a Virtual Network Gateway in Azure, linked to this is a Virtual network and this is also peered to a number of other vnets but along with it there is another different domain in there.

I am looking to try and get our Azure VPN that goes into the Virtual Network Gateway to be able to use DNS servers from both domains, we have two DCs in each domain.

If i set the VNET DNS to use one or the other DNS server ips then it works for that specific domain but i can't seem to configure it to use both as I need to be able to resolve names from either one of the domains at the same time.

Any ideas how to configure this?

Thanks

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
603 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,255 questions
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,401 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,198 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Timmy Malmgren 886 Reputation points
    2024-04-30T14:05:35.2+00:00

    Hello

    I'm not 100% sure on your setup but as i interpret it you have a hub and spoke network type, where one is peered to many? You also have two domains on-premise? And you would like to be able to use DNS between Azure and the two on-premise domains.

    I would suggest you check out private DNS resolver with hybrid environment, this below is a good setup how to do it, private DNS resolver is a managed service to get away from having DNS servers in Azure. You can have more than one inbound and outbound for DNS private resolver also :)

    https://techcommunity.microsoft.com/t5/itops-talk-blog/setting-up-dns-in-a-hybrid-environment/ba-p/3584272

    Hope this is helpful and remember shared knowledge is the best knowledge šŸ˜Š

    Best Regards,

    Timmy Malmgren


    If the Answer is helpful, please click "Accept Answer" and upvote it as it helps others to find what they are looking for faster!