/logo.png

Resolve DNS and IP addresses with PowerShell

In this case we’re going to use the method GetHostAddresses of the Dns class of the Sytem.Net namespace. For PowerShell 2.0 you can use following Windows PowerShell One Liners:

Name to IP Address (DNS Forward)

1
2
[System.Net.Dns]::GetHostAddresses('graef.io')
[System.Net.Dns]::GetHostAddresses('graef.io').IPAddressToString

IP Address to Name (DNS Reverse)

1
2
3
4
5
[System.Net.Dns]::GetHostbyAddress('85.13.135.42')

HostName              Aliases AddressList
--------              ------- -----------
graef.io {}      {85.13.135.42}

As of PowerShell 4.0 you can use the Cmdlet Resolve-DnsName as well as for both Forward and Reverse:

Show non-present devices in Windows with Device Manager

Open PowerShell or Commmand Shell, enter the following

1
2
set devmgr_show_nonpresent_devices=1
devmgmt.msc
/show-non-present-devices-in-windows-with-device-manager/2021-08-10-11-56-22.png
.

This will open your device manager with the ability to show hidden devices. Click on View and select “Show hidden devices”.

/show-non-present-devices-in-windows-with-device-manager/2021-08-10-11-56-49.png
.

Select your hidden device you need to remove, right click and select uninstall. That’s it!

Wordpress Editor Jump Fix

I’m not quite sure why WordPress does this but it seems to happen after some major upgrades or if one of your themes is not aligned correctly. The editor is jumping up and down while writing posts and this drives me insane! It seems not to happen everytime but mostly after a wordpress update happened or changing something on the interface.