I have a file full of subdomains each line. And I want to convert these subdomains to IPs by using bash script. my file:
subdomain1.example.com
subdomain2.example.com
...
and I want a new file full of IPs of these.
I want to do this with a loop.
for line in $(cat subdomains.txt)
do
.......
done < ip.txt
What should that be in ........
part?
man nslookup
orman host
orman dig