Skip to content

Commit

Permalink
ipv4LKUP 1.0 Uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
bladestech authored Mar 21, 2024
0 parents commit 3b0f723
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ipv4LKUP.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@echo off
title ipv4LKUP
set /p url=Enter URL:

for /f "delims=" %%a in ('powershell -command "(Resolve-DnsName -Name '%url%' -Type A).IPAddress"') do (
set ipv4=%%a
goto :found_ipv4
)

:found_ipv4
if defined ipv4 (
echo IPv4 Address: %ipv4%
) else (
echo Unable to resolve URL to IPv4 address.
)
pause

0 comments on commit 3b0f723

Please sign in to comment.