Skip to content

Instantly share code, notes, and snippets.

@rvanlaarhoven
rvanlaarhoven / get-nameservers.sh
Last active March 4, 2021 09:37
Get nameservers of a collection of domains
#!/bin/bash
# Usage
# ./get-namerservers.sh ./domainlist
# Where domainlist is a file with a domain name on each line.
# This requires an empty line at the end of the file!
INPUT_FILE=$1
if [ ! -f "$INPUT_FILE" ]; then