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: DHCP Server Migration

Nowadays, being lazy is good. Why waste energy with clicking buttons when there are a…

PowerShell: Start IIS Sites & App Pools

Before running the below script, it's necessary to mark certain IIS App pools and websites…

PowerShell: Replacing Notepad with Notepad Plus Plus

Update 12/04/2020: there's a simpler solution - install notepad2! choco install notepad2 -y The command…