Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note: I selected Azure DNS tag because there isn't another relevant tag. But the DNS I'm managing isn't 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