Posted On October 22, 2020

Querying Internal DNS for Host Record for iDRAC IPs

kimconnect 0 comments
blog.KimConnect.com >> Codes , Networking >> 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 *

Related Post

PowerShell: Check TCP Connections of Server by Port Numbers

# Check-TCP-Connections.ps1# This function will output progress onto the console as well as returning a…

PowerShell: removing elements of an immutable “fixed size” array

By default, PowerShell's Array is an object class; hence, its length a "fixed size" as…

Issue: A-Host Records Disappear in an Active Directory Integrated DNS Environment with Windows DHCP Server

Issue: Certain virtual machines would loose their a-host records after a period of time. That…