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

Basic CSS: Use CSS Selectors to Style Elements

<h2 style="color: red">CatPhotoApp</h2><main><p>Click here to view more <a href="#">cat photos</a>.</p><a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange…

WordPress Plugin to Customize How Posts are Displayed

A. Install the 'Display Posts' plugin B. Install the 'Code Snippets' plugin C. Add this…

Hyper-V: Cloning a Virtual Machine

Update 11/25/2021: There's anther variation of this function at: https://blog.kimconnect.com/powershell-create-hyper-v-guest-vm-from-virtual-disk-vhdx/This function will dynamically detect source…