Skip to content
TekTinkers

TekTinkers

Learning and imagination unlock limitless possibilities in technology

  • TinkersLab
    • TinkersDocs
    • Garage LAN
    • HomeLab
  • Resources
    • Events
  • Minecraft
    • Minecraft Technologies
    • Server Tools ‘n Stuff
    • TinkersCraft
  • About
    • Education
    • Experience-Awards
    • Special Thanks
    • Volunteer-Charity
  • Toggle search form

*.bat file to resolve DNS / IP

Posted on June 17, 2025June 17, 2025 By TekTinkers
  • In the Search field on the Taskbar type “notepad”
  • Open Notepad
  • In new Notepad type;
@echo off
:loop
nslookup google.com
:: ping -n 1 google.com
timeout /t 10
goto loop

Adding “::” at the beginning of a line means the line will NOT be read, this can be removed.
  • Go to “Save as”
  • Go to “Save as type:” and select “All files”
  • Type desired filename and add “.bat” at end of filename
  • Select desired location of file to be saved at.
  • Select “Save”
  • Double Click your new *.bat file to start it!

NOTE:
You can either press Ctrl+c to stop the *.bat file or just close the window.

Microsoft, TinkersLab Tags:bat, microsoft, notepad, resolve

Post navigation

Previous Post: Make Bootable USB Stick w/ ISO to install Windows
Next Post: Let’s Encrypt – Certbot

Copyright © 2025 TekTinkers - Images by CoPilot, unedited for the lol's