#!/bin/bash ######################################################## # whois2 - Busca dominios utilizando el comando whois # Uso: # whois2 # Solo para dominios del comando whois # Distrubuido bajo licencia GNU/GPL # Autor: http://sistemasoperativos.wordpress.com # Post: http://sistemasoperativos.wordpress.com/2008/02/22/whois-simplificado-script/ ######################################################### while true do echo "Introduce dominio a buscar: (ej: dominio.com)" echo Pulsa Ctrl-C para terminar read dominio noencontrado=`whois $dominio|grep "No match for"|wc -l` whois $dominio>/tmp/wd if test $noencontrado -eq 1 then cat /tmp/wd|grep "No match for " else cat /tmp/wd|grep "Name" cat /tmp/wd|grep "Date" cat /tmp/wd|grep "Organization" cat /tmp/wd|grep "Email" cat /tmp/wd|grep "NameServer" fi done