将以下文本保存为bat即可, 运行时使用域名作为参数:
rt.bat www.filesonic.com
FOR /F "skip=1 tokens=2,3* " %%i in ('nslookup %1 ^| findstr /i "Address:"') do route add %%i mask 255.255.255.255 192.168.100.10
将以下文本保存为bat即可, 运行时使用域名作为参数:
rt.bat www.filesonic.com
FOR /F "skip=1 tokens=2,3* " %%i in ('nslookup %1 ^| findstr /i "Address:"') do route add %%i mask 255.255.255.255 192.168.100.10