Querying Internal DNS for Host Record for iDRAC IPs

Copy / Paste for quick results:

$domain='hooli.com'
$records=Get-DnsServerResourceRecord -ZoneName $domain -ComputerName $env:USERDNSDOMAIN
$records|?{$_.HostName -like '*drac*' -and $_.RecordType -eq 'A'}

# Sample Output:
HostName RecordType Timestamp TimeToLive RecordData
-------- ---------- --------- ---------- ----------
IRV-SRV01DRAC A 10/21/2012 5:00:0... 00:15:00 55.55.55.55
IRV-SRV02DRAC A 10/22/2012 3:00:0... 00:15:00 55.55.55.56

Leave a Reply

Your email address will not be published. Required fields are marked *