Here's an example where you can loop through the addresses.
https://community.spiceworks.com/topic/2198046-how-to-sort-ip-addresses-properly-with-get-dnsserverresourcerecord
powershell help!
John JY
221
Reputation points
Hi all,
we need to convert all servers DNS dynamic records to static records within all Windows 2012 domain controllers AD.
Can anyone help on how to convert through powershell script?
Thank you!
Windows for business | Windows Server | User experience | PowerShell
3 answers
Sort by: Most helpful
-
Anonymous
2022-03-24T00:04:34.137+00:00 -
Rich Matheisen 48,116 Reputation points
2022-03-22T18:45:02.303+00:00 The Get-DnsServerResourceRecord should return all the "A" records for the host. You just have to iterate over the list, changing them one at a time.
-
Anonymous
2022-03-17T14:59:33.3+00:00 Here you go again?
https://learn.microsoft.com/en-us/answers/questions/232821/anyone-can-help-to-turn-dynamic-dns-server-records.html--please don't forget to
upvoteandAccept as answerif the reply is helpful--