/ Published in: DOS Batch
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
@echo off rem Set this to the hostname that you just updated the A record on set hostchk=server.example.org rem Set this to the new A record address set correctip=127.127.127.127 rem this is tricky, look for two of the strings "Address" cls goto flush :allgood echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ echo When the server comes online, you'll be ready to go. echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ :error echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Echo Put help text here echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ :errornons echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Echo Your computer doesn't have nslookup so this batch file won't work. echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ :error2 echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Echo Put help text here echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ :flush echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ipconfig /flushdns echo ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ cls goto error2