Linux-Noob Forums

Full Version: Checking your website's A record ( ip address )
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

# This will find your primary nameserver of record and query it for an A record

#

 

bash-prompt: ~] whois domain.com > /tmp/whois && awk '/Name/{print x};{x=$0}' /tmp/whois ; awk '/Name/{getline;print}' /tmp/whois | xargs host domain.com