ipconfig flushdns批处理文件,用于主机DNS A的更改,帮助用户解析新主机
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ipconfig flushdns批处理文件,用于主机DNS A的更改,帮助用户解析新主机相关的知识,希望对你有一定的参考价值。
@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
以上是关于ipconfig flushdns批处理文件,用于主机DNS A的更改,帮助用户解析新主机的主要内容,如果未能解决你的问题,请参考以下文章