<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Nullable Blog [Ignoranto.Info] &#187; whois</title>
	<atom:link href="http://ignoranto.info/tags/whois/feed/" rel="self" type="application/rss+xml" />
	<link>http://ignoranto.info</link>
	<description>grbr.says(&#34;a little bit of everything and a lot of nothing&#34;);</description>
	<lastBuildDate>Sat, 24 Jul 2010 01:42:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Whois Dominios Punto Pe</title>
		<link>http://ignoranto.info/ricercando/whois-dominios-punto-pe/</link>
		<comments>http://ignoranto.info/ricercando/whois-dominios-punto-pe/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 04:38:10 +0000</pubDate>
		<dc:creator>gerWare</dc:creator>
				<category><![CDATA[Cosas en la Web!]]></category>
		<category><![CDATA[WWW]]></category>
		<category><![CDATA[Dominios]]></category>
		<category><![CDATA[Punto Pe]]></category>
		<category><![CDATA[whois]]></category>

		<guid isPermaLink="false">http://ignoranto.info/?p=562</guid>
		<description><![CDATA[Muchas veces necesitamos ponernos en contacto con el administrador de un dominio .pe en particular.  Lamentablemente los dominios .pe no cuentan con un server whois para acceso público (mediante scripts), asi que el único método (por ahora) de conocer el &#8220;propietario&#8221; de un determinado dominio punto pe es mediante la página de Whois de la [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_563" class="wp-caption alignleft" style="width: 202px"><a href="http://ignoranto.info/wp-content/uploads/punto-pe.png"><img class="size-full wp-image-563" title="Punto.pe" src="http://ignoranto.info/wp-content/uploads/punto-pe.png" alt="Dominios Punto Pe" width="192" height="68" /></a><p class="wp-caption-text">Dominios Punto Pe</p></div>
<p style="text-align: justify;">Muchas veces necesitamos ponernos en contacto con el administrador de un dominio .pe en particular.  Lamentablemente los <strong>dominios .pe</strong> no cuentan con un <strong>server whois</strong> para acceso público (mediante scripts), asi que el único método (por ahora) de conocer el &#8220;propietario&#8221; de un determinado <strong>dominio punto pe</strong> es mediante la página de <strong>Whois de la Nic Perú</strong>. La dirección es la siguiente <a href="https://www.punto.pe/nic_whois.php" target="_blank">Whois Punto Pe</a>, solo tenemos que poner el dominio a examinar y su tld (&#8220;extensión&#8221;) correspondiente.</p>
<h3 style="text-align: center;">¿Qué son los dominios .pe?</h3>
<p style="text-align: justify;">Son los <strong>dominios territoriales de Perú</strong> <img src='http://ignoranto.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Ignoranto Blog es un blog peruano, si necesitas más información puedes recurrir a la <a href="http://es.wikipedia.org/wiki/.pe">wikipedia</a> y su artículo sobre <a href="http://es.wikipedia.org/wiki/.pe">.pe</a></p>
<h3 style="text-align: center;">¿Cómo registro un dominio .pe?</h3>
<p style="text-align: justify;">A través de la página <a href="http://punto.pe">punto.pe</a> o a tramitando el registro mediante alguna empresa de hosting y registro de dominios.</p>
<h3 style="text-align: center;">¿Es necesario tener un dominio .pe?</h3>
<p style="text-align: justify;">Solo por identidad nacional y para que nuestros visitantes sepan que la página que visitan es una página peruana <img src='http://ignoranto.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , el gran inconveniente es el precio, lamentablemente los dominios territoriales de Perú cuestan 3 veces más que uno genérico.</p>
<h3 style="text-align: center;">¿Por que ignoranto blog no tiene domino .pe?</h3>
<p style="text-align: justify;">Lo mismo me pregunto yo! ¿Por que no tengo dominio .pe? <img src='http://ignoranto.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ignoranto.info/ricercando/whois-dominios-punto-pe/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Como hacer un Whois Domain Search LookUp</title>
		<link>http://ignoranto.info/ricercando/whois-domain-search-json-php/</link>
		<comments>http://ignoranto.info/ricercando/whois-domain-search-json-php/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 22:26:01 +0000</pubDate>
		<dc:creator>gerWare</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[whois]]></category>

		<guid isPermaLink="false">http://ignoranto.info/?p=516</guid>
		<description><![CDATA[¿Esta disponible tu Dominio? ¿Necesitas un buscador WHOIS para tu web? Veremos como construir un Whois en PHP, y como hacerle consultas mediante ajax usando Json y jQuery para facilitarnos la vida! Requisitos: Manejo de jQuery a nivel teletubi Conocimientos básicos de PHP Conocimientos sobre HTML Para empezar debemos saber que es un Whois LookUp [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp mceIEcenter" style="text-align: center;">
<dl id="attachment_518" class="wp-caption   aligncenter" style="width: 342px;">
<dt class="wp-caption-dt"><a href="http://develop.ignoranto.info/html/byteWhois.html"><img class="size-full wp-image-518 " title="byteWhois" src="http://ignoranto.info/wp-content/uploads/byteWhois.jpg" alt="byteWhois, Domain Search" width="332" height="168" /></a></dt>
<dd class="wp-caption-dd">¿Esta disponible tu Dominio?</dd>
</dl>
</div>
<h2 style="text-align: justify;">¿Necesitas un buscador WHOIS para tu web?</h2>
<p style="text-align: justify;">Veremos como construir un Whois en PHP, y como hacerle consultas mediante ajax usando Json y jQuery para facilitarnos la vida!</p>
<p style="text-align: justify;"><strong>Requisitos:</strong></p>
<ul style="text-align: justify;">
<li>Manejo de jQuery a nivel teletubi</li>
<li>Conocimientos básicos de PHP</li>
<li>Conocimientos sobre HTML</li>
</ul>
<p style="text-align: justify;">Para empezar debemos saber que es un <strong>Whois LookUp</strong></p>
<p style="text-align: justify;">El Whois son los datos del registro del dominio, en él está la información acerca del registrante y el registrador, la fecha de registro, la última actualizacion y la fecha de vencimiento, tambien encontramos el estatus del dominio como por ejemplo si éste acepta transferencia, autorenovación y cosas más!</p>
<p style="text-align: justify;">El whois LookUp que he escrito se llama <strong>byteWhois!</strong> y funciona de la siguiente manera:</p>
<ol style="text-align: justify;">
<li>Recibe 2 parámetros GET, dominio y tld;</li>
<li>Una funcion que según el TLD extrae la url de un servidor Whois</li>
<li>Otra funcion abre conexión fsockopen(); introduce el dominio a consultar fputs(); y se descarga la respuesta!</li>
<li>Si dentro de la respuesta (el whois) existe las palabras &#8220;No match&#8221;, &#8220;No Found&#8221; u otras, quiere decir que NO esta registrado!</li>
<li>En caso de estar registrado, se obtiene la info del whois</li>
<li>Se codifica toda esta información como json y se imprime en el archivo (echo $json;)</li>
</ol>
<p style="text-align: justify;">Luego que el archivo php nos hara resuelto, usando jQuery extraeremos los datos de <strong>byteWhois!</strong> y éste nos devolverá un objeto JavaScript, el objeto tendrá 2 propiedades: &#8220;estado&#8221; y &#8220;whois&#8221;;</p>
<p style="text-align: justify;"><strong>El source de byteWhois.php</strong></p>
<pre style="text-align: justify;"> $dominioNombre = $_GET['dominio'];
 $dominioExtension = $_GET['tld'];

 $estado = comprobarDominio($dominioNombre,$dominioExtension);
 if ($estado == 'no-disponible'){    $whois = INFO_WHOIS;    }
 else    {    $whois = "Dominio no registrado";    }

 $data = array("estado" =&gt; "$estado","whois" =&gt; $whois );
 echo json_encode($data);</pre>
<p style="text-align: justify;">En el codigo anterior: recibimos variables por <strong>GET</strong>, las variables del dominio y la tld,  enviamos a la funcion &#8220;comprobarDominio();&#8221; los valores del dominio y el tld, ésta funcion devolverá un string y depositamos dicho string en <strong>$estado</strong>, si el valor de <strong>$estado</strong> es igual a <strong>&#8220;no-disponible&#8221;</strong> entonces, $whois tomará el valor de <strong>INFO_WHOIS</strong> (que posteriormente definiremos), caso contrario, el valor de <strong>$whois</strong> es &#8220;Dominio no registrado&#8221;;</p>
<p style="text-align: justify;"><strong>El método (funcion) comprobarDominio();</strong></p>
<pre style="text-align: justify;">function comprobarDominio($dominioNombre, $dominioTld)
{
 $dominioCompleto = $dominioNombre.".".$dominioTld;
 $serverInfo = servidorWhois($dominioTld);
 if ($serverInfo)
 {
 $serverData = explode(";", $serverInfo);
 $whoisServer = $serverData[0];
 $noFound = $serverData[1];
 $conexionServer = fsockopen($whoisServer,43);
 fputs($conexionServer,"$dominioCompleto\r\n");
 $respuesta = '';
 while(!feof($conexionServer))
 {
   $respuesta .= fgets($conexionServer,128);
 }
 fclose($conexionServer);
 if (ereg($noFound,$respuesta)) {
 return "disponible";
 }
 else {
   define ('INFO_WHOIS',$respuesta);
   return "no-disponible";
 }
 }
 else
 {
   return "tld-incorrecta";
 }
}</pre>
<p style="text-align: justify;"><strong>comprobarDominio();</strong> concadenará las variables ingresadas para crear el nombre de dominio (<strong>$dominioCompleto</strong>), tenemos una funcion &#8220;<strong>servidorWhois()</strong>&#8221; que devuelve un string con la direccion del servidor y una frase (&#8220;no match&#8221;, &#8220;no found&#8221;) concadenada, si recibimos respuesta de la función entonces dividiremos el string recibido y extraeremos la primera parte (la direccion del servidor),  abriremos conexion con fsockopen en el puerto 43, colocaremos la info del dominio con fputs(), y leeremos el archivo de conexión (un archivo de texto), concadenamos el contenido en la variable $resultado, cerramos la conexion con <strong>fclose()</strong>; y si en el string (resultado) encontramos las frase contenida en  <strong>$noFound</strong>, entonces el dominio esta disponible, caso contrario el dominio ya está registrado y declaramos la variable <strong>INFO_WHOIS</strong>, asignandole el valor de <strong>$respuesta</strong>, si en la funcion nos ingresaron una TLD que no existe  (dentro de la funcion servidoWhois(), retornamos &#8220;tld-incorrecta&#8221;;</p>
<p style="text-align: justify;"><strong>El método (o función) servidorWhois();</strong></p>
<pre style="text-align: justify;">function servidorWhois($tld)
{
 switch($tld)
 {
 case 'com' :    $server = "whois.verisign-grs.com";
 $noFound = "No match"; break;

 case 'net' :    $server = "whois.verisign-grs.com";
 $noFound = "No match"; break;

 case 'org' :    $server = "whois.publicinterestregistry.net";
 $noFound = "NOT FOUND"; break;

 case 'info':    $server = "whois.afilias.net";
 $noFound = "Not found"; break;

 case 'biz' :    $server = "whois.nic.biz";
 $noFound = "Not found"; break;

 default:        return null; break;
 }
 return $server.";".$noFound;
}</pre>
<p style="text-align: justify;">En ésta funcion retornamos un valor según la TLD ingresada, el valor retornado es la url del servidor (con la cual luego abriremos una conexión) y la frase (según el servidor) que indica si el dominio no está registrado (o por lo menos si los servidores NO tienen información al respecto!), el valor devuelto es una cadena asi: &#8220;servidor;nofound&#8221;, posteriormente dividiremos dicha cadena (usando el punto y coma) e interpretaremos los valores independientemente!</p>
<p style="text-align: justify;">Hasta aquí ya hemos creado <a href="http://develop.ignoranto.info/LeerPHP?Carpeta=php&amp;Archivo=byteWhois.php" target="_blank">byteWhois</a> para conocer la disponibilidad de un dominio, el <a href="http://develop.ignoranto.info/LeerPHP?Carpeta=php&amp;Archivo=byteWhois.php" target="_blank">codigo de byteWhois!</a></p>
<p style="text-align: justify;">En el código de nuestro formulario usaremos jquery.getJSON() para obtener datos de byteWhois();</p>
<pre style="text-align: justify;">$.getJSON('http://direccion/de/byteWhois_de_ignoranto.php',{dominio:"midominio", tld:"mitld"},
 function(data){ alert(data.info)});</pre>
<p style="text-align: justify;">Enviamos &#8220;midominio&#8221; y &#8220;mitld&#8221; a byteWhois, luego (que se haya resuelto) se nos mostrará un alert! donde seremos informados del estado del dominio (registrado, no-registrado, tld-incorrecta), podemos ver <a href="http://develop.ignoranto.info/html/byteWhois.html" target="_blank">byteWhois</a> en accion (solo para <strong>ver la <a href="http://develop.ignoranto.info/html/byteWhois.html">disponibilidad del dominio</a></strong>) a través de <a href="http://develop.ignoranto.info/html/byteWhois.html">éste link!</a></p>
<p style="text-align: justify;">Si queremos ver la información WHOIS (el registrante) debemos guardar el valor de &#8220;<strong>data.whois</strong>&#8221; en una variable y luego &#8220;trabajarla&#8221; y asi mostrarla en el navegador! Podemos ver el código html+JavaScript aquí » <a href="http://develop.ignoranto.info/LeerPHP?Carpeta=html&amp;Archivo=byteWhois.html">byteWhois.html</a></p>
<p style="text-align: justify;">Descargar el codigo de <a href="http://develop.ignoranto.info/LeerPHP?Carpeta=php&amp;Archivo=byteWhois.php">byteWhois.php</a><br />
Descargar el codigo de <a href="http://develop.ignoranto.info/LeerPHP?Carpeta=html&amp;Archivo=byteWhois.html">byteWhois.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ignoranto.info/ricercando/whois-domain-search-json-php/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
