An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
Hello,
There is a way :
$DnsZone = "yourdomain.com" # Replace with your DNS zone name
$DnsServer = "yourdnsserver" # Replace with your DNS server name or IP address
$FilterString = "example" # Replace with the consecutive characters you want to search for
# Get DNS records from the specified zone
$DnsRecords = Get-DnsServerResourceRecord -ZoneName $DnsZone -ComputerName $DnsServer
# Filter records based on the consecutive characters
$FilteredRecords = $DnsRecords | Where-Object { $_.HostName -like "*$FilterString*" }
# Display the filtered records
$FilteredRecords