DNS Registration failing for workstations running in Azure?

Simon Gadsby 26 Reputation points
2024-08-07T07:27:42.1933333+00:00

Hi,

We have:

  • DNS servers running in Azure. Scavenging is enabled with default settings 7/7
  • AVD workstations running Windows 11 in Azure. These machines pick up their IP address via DHCP from Azure

According to the docs Windows is supposed to re-register DNS every 24 hours, however we are finding that DNS entries are not being refreshed, and scavenging eventually removes them from DNS.

If we run ipconfig /registerdns on the machine then it re-registers correctly and prevents any issue for another few weeks.

The fault appears to be intermittent, suggesting that some machines do refresh correctly.

Has anyone else seen this? Any suggestions? ipconfig output below.

Thanks,
Simon.

C:\>ipconfig /all

Windows IP Configuration
   Host Name . . . . . . . . . . . . : MYSERVERNAME
   Primary Dns Suffix  . . . . . . . : mydomain.local
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : mydomain.local
                                       reddog.microsoft.com
Ethernet adapter Ethernet 2:
   Connection-specific DNS Suffix  . : reddog.microsoft.com
   Description . . . . . . . . . . . : Microsoft Hyper-V Network Adapter #2
   Physical Address. . . . . . . . . : 00-0D-3A-D1-57-4F
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 10.146.8.6(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Wednesday, 7 August 2024 4:20:28 PM
   Lease Expires . . . . . . . . . . : Saturday, 13 September 2160 11:42:55 PM
   Default Gateway . . . . . . . . . : 10.146.8.1
   DHCP Server . . . . . . . . . . . : 168.63.129.16
   DNS Servers . . . . . . . . . . . : 10.144.8.40
                                       10.160.8.40
   NetBIOS over Tcpip. . . . . . . . : Enabled


PS C:\> Get-DnsServerResourceRecord -ZoneName mydomain.local -ComputerName dnservername -Name MYSERVERNAME | fl

DistinguishedName : DC=MYSERVERNAME,DC=mydomain.local,cn=MicrosoftDNS,DC=DomainDnsZones,DC=mydomain,DC=local
HostName          : MYSERVERNAME
RecordType        : A
Type              : 1
RecordClass       : IN
TimeToLive        : 00:20:00
Timestamp         : 24/07/2024 12:00:00 AM
RecordData        : 10.146.8.6

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,428 questions
Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,039 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,581 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 44,931 Reputation points Microsoft Employee
    2024-08-08T10:52:46.03+00:00

    @Simon Gadsby ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    Running DHCP Servers on Azure is more of a recent addition.

    • See : Can I deploy a DHCP server in a virtual network?
    • DHCP Server in Azure was previously marked not feasible since the traffic to port UDP/67 was rate limited in Azure. However, recent platform updates have removed the rate limitation, enabling this capability.
    • Also, You can't use DHCP via Unicast (source port UDP/68, destination port UDP/67). UDP source port 65330 is reserved for the host.
      • Can you please confirm if the above condition is met?

    From your verbatim,

    • I see the DHCP server is listed as "168.63.129.16"
      • This is Azure's Wireserver IP which enables the VM to obtain a dynamic IP address from the DHCP service in Azure.
    • While you may run the DHCP VMs , did you also update the VMs to use these VMs for DHCP?

    Cheers,

    Kapil


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.