Mass get nameservers from domain.txt list

By.

min read

My profile

Share this:
# Source - https://stackoverflow.com/a/1521498
# Posted by Bruno De Fraine, modified by community. See post 'Timeline' for change history
# Retrieved 2025-11-14, License - CC BY-SA 4.0

while read p; do
  echo "$p"
  
  echo $p >> output.txt
  host -t ns $p >> output.txt
  
done < domains.txt
Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *