a·gen·tic a·gil·i·ty

Configure a DNS server for an Azure Virtual Network

TL;DR; To ensure all servers in an Azure virtual network can join a configured domain, set up a DNS server with a fixed internal IP and register it in the network settings. Assign this DNS server to the virtual network so any new or rebooted machines automatically use it for domain joining. Development managers should ensure DNS configuration is part of their Azure network setup to support domain integration and future scalability.

Published on
2 minute read
Image
https://nkdagility.com/resources/sQQqpuZV5xQ
Subscribe

I just got done configuring a DC in Azure for AAD integrated Release Management and I need to now Configure a DNS server for an Azure Virtual Network. This will tell Azure that any servers that are added to this virtual network should use this DNS server. This should allow any machine added to this virtual network to be able to join the domain that we have configured.

Before we can set a DNS server default we need to have a fixed IP Address for the server. Although DNS provides name resolutions so that we do not need to use IP’s all the time you need a place to start. In the big bad internet there are ’name servers’ that start the ball rolling that exist at a well known level. Within our virtual network we need to create our own well known starting point.

Configure a DNS server for an Azure Virtual Network

There is a simple command to give your server a fixed IP within your virtual network. You can apply it to any server and it allows the internal virtual network IP to persist even if you turn off the server. This does not affect the external IP.

1Get-AzureVM -ServiceName nkd-infra -Name nkd-inf-svrdc01 | Set-AzureStaticVNetIP -IPAddress 10.0.0.4 | Update-AzureVM

There is also a ‘check IP’ command that, as I only currently have a single server is a little pointless. I just set the servers current IP as the fixed IP for the future.

Configure a DNS server for an Azure Virtual Network

We first need to create a DNS server definition that we can select later. Here we simply set the name and IP of the DNS server to create a registration of that DNS server.

Configure a DNS server for an Azure Virtual Network

We then need to go to the virtual network that we created and tell it that the DNS server should be the one to use. If we had a large network we may set more than one DNS server, but in this case we are just pottering around with the configuration for demos. Select the network and go to the configuration tab. Here we can select our pre-created DNS server.

If you create new machines, or reboot the existing machines in the virtual network, they will then be given this DNS server when DHCP assigns configuration. In this way you can create quite complicated network configurations and even create backup domains controllers to allow you to extend your local network to the cloud.

Smart Classifications

Each classification [Concepts, Categories, & Tags] was assigned using AI-powered semantic analysis and scored across relevance, depth, and alignment. Final decisions? Still human. Always traceable. Hover to see how it applies.

Subscribe

Connect with Martin Hinshelwood

If you've made it this far, it's worth connecting with our principal consultant and coach, Martin Hinshelwood, for a 30-minute 'ask me anything' call.

Our Happy Clients​

We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.​

Xceptor - Process and Data Automation Logo

Xceptor - Process and Data Automation

YearUp.org Logo

YearUp.org

New Signature Logo

New Signature

Healthgrades Logo

Healthgrades

SuperControl Logo

SuperControl

Epic Games Logo

Epic Games

Sage Logo

Sage

Qualco Logo

Qualco

Flowmaster (a Mentor Graphics Company) Logo

Flowmaster (a Mentor Graphics Company)

Boxit Document Solutions Logo

Boxit Document Solutions

Trayport Logo

Trayport

ProgramUtvikling Logo

ProgramUtvikling

Microsoft Logo

Microsoft

Schlumberger Logo

Schlumberger

Jack Links Logo

Jack Links

Akaditi Logo

Akaditi

Freadom Logo

Freadom

Kongsberg Maritime Logo

Kongsberg Maritime

Washington Department of Transport Logo

Washington Department of Transport

Nottingham County Council Logo

Nottingham County Council

Royal Air Force Logo

Royal Air Force

Ghana Police Service Logo

Ghana Police Service

Washington Department of Enterprise Services Logo

Washington Department of Enterprise Services

New Hampshire Supreme Court Logo

New Hampshire Supreme Court

Flowmaster (a Mentor Graphics Company) Logo

Flowmaster (a Mentor Graphics Company)

Boxit Document Solutions Logo

Boxit Document Solutions

Emerson Process Management Logo

Emerson Process Management

ALS Life Sciences Logo

ALS Life Sciences

Jack Links Logo

Jack Links

Xceptor - Process and Data Automation Logo

Xceptor - Process and Data Automation