$Server = "ru-dc-p01.sys.clz.ru"
$Zone = "clz.ru"
Write-Host "`n===== DELIVERY DNS RECORDS =====" -ForegroundColor Cyan
Get-DnsServerResourceRecord `
-ComputerName $Server `
-ZoneName $Zone |
Where-Object {
$_.HostName -match "delivery|ingress|kube|k8s"
} |
Select-Object HostName, RecordType, RecordData, TimeToLive |
Format-List
Write-Host "`n===== CHECK DNS P03 =====" -ForegroundColor Cyan
Resolve-DnsName `
-Name "ru-dc-p03.sys.clz.ru" `
-Server "10.191.11.4" `
-Type A `
-DnsOnly `
-ErrorAction Continue
Write-Host "`n===== CURRENT IP REVERSE DNS =====" -ForegroundColor Cyan
Resolve-DnsName `
-Name "10.191.125.5" `
-Type PTR `
-Server "10.191.11.4" `
-DnsOnly `
-ErrorAction Continue