Skip to content

Instantly share code, notes, and snippets.

View bk-ty's full-sized avatar

Brandon Kiefer bk-ty

View GitHub Profile
#!/bin/bash
# Usage: ./dns-lookup.sh example.com
HOST="$1"
DNS_SERVER=${2:-8.8.8.8}
PORT=53
if [[ -z "$HOST" ]]; then
echo "Usage: $0 <hostname> [dns_server]"