回复 17# lantern
可以改成这样:- @echo off
- pushd %~dp0
- setlocal enabledelayedexpansion
- (for /f %%a in (domain.txt) do (
- for /f %%b in (dns.txt) do (
- for /f "skip=1 tokens=1,2 delims=: " %%i in ('nslookup -qt^=a %%a %%b 2^>nul^|findstr "[0-9]$"') do echo %%j#%%a
- )
- ))>Answer.txt
复制代码 我测试了,Answer.txt的内容如下:
173.194.72.102#google.com
173.194.72.139#google.com
173.194.72.100#google.com
173.194.72.138#google.com
173.194.72.101#google.com
173.194.72.113#google.com
……(太长,后面省略) |