<?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/"
	>

<channel>
	<title>Itimag.net</title>
	<atom:link href="http://www.itimag.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.itimag.net</link>
	<description>Noticias tecnológicas, programación, tutoriales, freak...</description>
	<pubDate>Sat, 03 Jan 2009 01:19:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configurar el servidor DNS junto a un dominio</title>
		<link>http://www.itimag.net/servidores/como-configurar-el-servidor-dns-junto-a-un-dominio.html</link>
		<comments>http://www.itimag.net/servidores/como-configurar-el-servidor-dns-junto-a-un-dominio.html#comments</comments>
		<pubDate>Sat, 03 Jan 2009 01:12:40 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
		
		<category><![CDATA[Ada]]></category>

		<category><![CDATA[Curso Adm. Servidores]]></category>

		<category><![CDATA[Servidores]]></category>

		<category><![CDATA[añadir]]></category>

		<category><![CDATA[bind]]></category>

		<category><![CDATA[como]]></category>

		<category><![CDATA[configurar]]></category>

		<category><![CDATA[dominio]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[server]]></category>

		<category><![CDATA[servidor]]></category>

		<guid isPermaLink="false">http://www.itimag.net/?p=394</guid>
		<description><![CDATA[Hace unos días vimos como instalar un servidor de DNS en nuestro equipo o servidor y ahora toca ver como se configura para que éste sea capaz de resolver nuestros dominios.
Supongamos que tenemos el dominio itimag.net y queremos configurarlo en nuestro servidor de tal forma que este mismo resuelva el dominios y que además tenga [...]]]></description>
			<content:encoded><![CDATA[<p>Hace unos días vimos como instalar un servidor de DNS en nuestro equipo o servidor y ahora toca ver como se configura para que éste sea capaz de resolver nuestros dominios.</p>
<p>Supongamos que tenemos el dominio itimag.net y queremos configurarlo en nuestro servidor de tal forma que este mismo resuelva el dominios y que además tenga las entradas DNS primaria y secundária que nosotros mismos personalizaremos (en mi caso ns1.itimag.net para la primaria y ns2.itimag.net para la secundária).</p>
<p>Cuando hablo de dns primarias y secundarias, me refiero a aquellas que podemos modificar desde el panel de administración de dominios que nos ofrece nuestro agente registrador. Por ejemplo, en OVH es este:  <a href="http://www.itimag.net/wp-content/uploads/2008/11/dns.png"><img class="aligncenter size-medium wp-image-472" title="dns" src="http://www.itimag.net/wp-content/uploads/2008/11/dns-300x218.png" alt="dns" width="300" height="218" /></a></p>
<p>Como observamos en la imagen, los DNS asociados a itimag.net son ns1.itimag.net y ns2.itimag.net.  Pues bien, vamos a ver como configurar esto en nuestro servidor con la finalidad de que en el whois del dominio, aparezca ns1.itimag.net y ns2.itimag.net en vez de la IP xxx.xxx.xxx.xxx.</p>
<p>Como se observa en la imagen, los dos DNS (ns1.itimag.net y ns2.itimag.net) apuntan a distintas IP.  Ambas IP están configuradas en el mismo equipo. No es precisamente así como debería estar ya que en caso de que el servidor falle, fallarían los 2 nombres de dominio y, por consiguiente, nadie podrá acceder al dominio o dominios configurados con estos servidores DNS.</p>
<p>En caso de que tu servidor disponga de una única ip, también puedes seguir el proceso que aquí se explica.</p>
<p>Pasemos a la acción:</p>
<ol>
<li>Accedemos al servidor por ssh y dirigirnos al directorio /etc/bind/</li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> user<span style="color: #000000; font-weight: bold;">@</span>xxx.xxx.xxx.xxx <span style="color: #660033;">-p</span> puerto
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">bind</span></pre></div></div>

<li> Para ver todos los ficheros de este directorio utilizamos el comando ls:</li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span></pre></div></div>

<li> Editamos el fichero /etc/bind/named.conf.local</li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">bind</span><span style="color: #000000; font-weight: bold;">/</span>named.conf.local</pre></div></div>

<li>Añadimos las siguientes zonas al fichero:</li>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">zone &quot;ns1.itimag.net&quot; {
type master;
file &quot;/etc/bind/ns1.itimag.net&quot;;
allow-transfer {87.98.xxx.xxx; }; // Tu segunda IP
};
&nbsp;
zone &quot;ns2.itimag.net&quot; {
type master;
file &quot;/etc/bind/ns2.itimag.net&quot;;
};
&nbsp;
// La zona inversa
zone &quot;xxx.xxx.xxx.in-addr.arpa&quot; {
type master;
file &quot;/etc/bind/pri.xxx.xxx.xxx.in-addr.arpa&quot;;
};</pre></div></div>

<p>Nota: Debes substituir el nombre de dominio (itimag.net) por el tuyo y en el allow transfer insertar la segunda ip de tu equipo (o la ip del DNS secundario externo en caso de no tener segunda ip).</p>
<p>El nombre de la zona inversa viene determinado por nuestra ip de tal forma que la zona inversa para la ip 10.11.12.13 sería “12.11.10.in-addr.arpa”</p>
<p>Guardamos el fichero y salimos, pulsando &#8220;ctrl + o&#8221; y  &#8220;ctrol+x&#8221;.</p>
<li>Ahora vamos crear los ficheros /etc/bind/ns1.itimag.net y /etc/bind/ns2.itimag.net :</li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">bind</span><span style="color: #000000; font-weight: bold;">/</span>ns1.itimag.net</pre></div></div>

<p>El fichero resultante debe ser algo como esto:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">$ttl 86400
&nbsp;
@ IN SOA ns1.itimag.net. root.localhost. (
&nbsp;
2008092401; serial-no
&nbsp;
28800; refresh, seconds
&nbsp;
7200; retry, seconds
&nbsp;
604800; expiry, seconds
&nbsp;
86400 ); minimum-TTL, seconds
&nbsp;
;
&nbsp;
ns1.itimag.net.         IN NS ns1.itimag.net
&nbsp;
ns1.itimag.net.         IN A 213.251.xxx.xxx</pre></div></div>

<p>Nota: Debes substituir cada ns1.itimag.net por tu ns1.dominio.com. Debes substituir la línea que contiene el serial-no siguiendo la siguiente norma:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">Año  	   Mes     Día      ID
&nbsp;
2008       09      24       01; serial-no</pre></div></div>

<p>Los cuatro primeros dígitos corresponden al año. Los dos siguientes al mes. Los dos siguientes al día y los 2 restantes hacen referencia a un identificador que indica la versión del fichero (cada vez que modificamos el fichero, debemos incrementar en una unidad el ID).  También debes substituir la IP 213.251.xxx.xxx con la ip de tu servidor.</p>
<p>Creamos el segundo fichero:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">bind</span><span style="color: #000000; font-weight: bold;">/</span>ns2.itimag.net</pre></div></div>

<p>Contendrá lo siguiente:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">$ttl 86400
&nbsp;
@ IN SOA ns2.itimag.net. root.localhost. (
2008092401; serial-no
28800; refresh, seconds
7200; retry, seconds
604800; expiry, seconds
86400 ); minimum-TTL, seconds
;
&nbsp;
ns2.itimag.net.         IN NS ns2.itimag.net
ns2.itimag.net.         IN A 87.98.xxx.xxx</pre></div></div>

<p>Nota: Debemos de realizar los mismos cambios que en el fichero anterior.  Modificamos el fichero /etc/resolv.conf para añadir nuestro dominio y las ip&#8217;s de nuestro servidor o servidores dns.</p>
<li>Creamos el fichero /etc/bind/pri.xxx.xxx.xxx.in-addr.arpa para la zona inversa:</li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">bind</span><span style="color: #000000; font-weight: bold;">/</span>pri.xxx.xxx.xxx.in-addr.arpa</pre></div></div>

<p>Debe quedar algo como esto:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">$ttl 86400
&nbsp;
@ IN SOA mi_dominio.com. root.localhost. (
2008071901; serial-no
28800; refresh, seconds
7200; retry, seconds
604800; expiry, seconds
86400 ); minimum-TTL, seconds
;
&nbsp;
NS ns1.mi_dominio.com.;
NS ns.kimsufi.com.;
&nbsp;
xxx PTR mi_dominio.com.</pre></div></div>

<p>Nota: El xxx corresponde con los últimos tres dígitos (o menos) de tu ip. El serial-no corresponde con la fecha actual: en este caso año 2008, mes 07, día 19, identificador 01. Cada vez que modifiquemos el fichero debemos aumentar en una unidad el identificador.
</ol>
<h3>Configuración del dominio:</h3>
<ol>
<li>Añadimos el dominio a configurar insertando la siguiente linea:</li>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">search mi_dominio.com</pre></div></div>

<li>Obsevemos que la ip de nuestro servidor se encuentra ya insertada en una linea como esta:</li>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">nameserver tu_ip</pre></div></div>

<p>Ejemplo de configuración:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">search mi_dominio.com
nameserver 127.0.0.1
nameserver 213.251.xxx.xx</pre></div></div>

<li>Modificamos el fichero /etc/bind/named.conf.local y le añadimos la zona para nuestro dominio:</li>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">zone &quot;mi_dominio.com&quot; {
type master;
file &quot;/etc/bind/pri.mi_dominio.com&quot;;
allow-transfer {213.186.33.199; };
};</pre></div></div>

<li>Creamos el ficgero /etc/bind/pri.mi_dominio.com</li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">bind</span><span style="color: #000000; font-weight: bold;">/</span>pri.mi_dominio.com</pre></div></div>

<p>Debe quedar algo como esto:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">$ttl 86400
&nbsp;
@ IN SOA ns1.mi_dominio.com. root.localhost. (
2008092201; serial-no
28800; refresh, seconds
7200; retry, seconds
604800; expiry, seconds
86400 ); minimum-TTL, seconds
;
&nbsp;
NS xxx.xxx.xxx.xxx ;
NS ns.ns.kimsufi.com. ;
MX 10 mail.mi_dominio.com.;
&nbsp;
mi_dominio.com. A xxx.xxx.xxx.xxx
www A xxx.xxx.xxx.xxx
ns1 A xxx.xxx.xxx.xxx
mail A xxx.xxx.xxx.xxx
&nbsp;
mi_dominio.com. TXT &quot;v=spf1 a mx ~all&quot;
mi_dominio.com. TXT &quot;v=spf1 a -all&quot;</pre></div></div>

<p>Nota: Debemos substituir las xxx.xxx.xxx.xxx por la ip donde va a apuntar al dominio</p>
<li>Forzamos bind a actualizar las zonas:</li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>bind9 force-reload</pre></div></div>

<li>Ahora podemos observar si se han producido errores observando los logs del demonio ejecutando el siguiente comando:</li>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">less</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log<span style="color: #000000; font-weight: bold;">/</span>daemon.log</pre></div></div>

</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.net/servidores/como-configurar-el-servidor-dns-junto-a-un-dominio.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Feliz año nuevo</title>
		<link>http://www.itimag.net/miniposts/feliz-ano-nuevo.html</link>
		<comments>http://www.itimag.net/miniposts/feliz-ano-nuevo.html#comments</comments>
		<pubDate>Wed, 31 Dec 2008 12:09:27 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
		
		<category><![CDATA[MiniPosts]]></category>

		<category><![CDATA[año]]></category>

		<category><![CDATA[nuevo]]></category>

		<guid isPermaLink="false">http://www.itimag.net/?p=467</guid>
		<description><![CDATA[Itimag os desea feliz año nuevo  
2009.
Que este año se cumplan todos vuestros deseos.

]]></description>
			<content:encoded><![CDATA[<h1 style="text-align: center;"><span style="color: #ff0000;">Itimag os desea feliz año nuevo  <strong></strong></span></h1>
<h1 style="text-align: center;"><span style="color: #ff0000;"><strong>2009</strong>.</span></h1>
<p><span style="color: #ff0000;"><span style="color: #000000;">Que este año se cumplan todos vuestros deseos.</span><br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.net/miniposts/feliz-ano-nuevo.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>LibrosWeb.es</title>
		<link>http://www.itimag.net/miniposts/libroswebes.html</link>
		<comments>http://www.itimag.net/miniposts/libroswebes.html#comments</comments>
		<pubDate>Tue, 30 Dec 2008 01:04:26 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
		
		<category><![CDATA[MiniPosts]]></category>

		<category><![CDATA[ajax]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[javascript]]></category>

		<category><![CDATA[Libros programacion diseño web gratis]]></category>

		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.itimag.net/?p=463</guid>
		<description><![CDATA[Si estas buscando libros de programación y diseño web, recomiendo aquellos que librosweb.es ofrece: Symfony, Introducción a AJAX, Introducción a JavaScript, Introducción a CSS, Introducción a XHTML y CSS avanzado.

]]></description>
			<content:encoded><![CDATA[<p>Si estas buscando libros de programación y diseño web, recomiendo aquellos que<a title="LibrosWeb" href="http://librosweb.es/" target="_self"> librosweb.e</a>s ofrece: <a title="Symfony" href="http://librosweb.es/symfony/index.html" target="_self">Symfony</a>, <a title="Introucción a Ajax" href="http://librosweb.es/ajax/index.html" target="_self">Introducción a AJAX</a>, <a title="Introducción a JavaScript" href="http://librosweb.es/javascript/index.html" target="_self">Introducción a JavaScript</a>, <a title="Introducción a CSS" href="http://librosweb.es/css/index.html" target="_self">Introducción a CSS</a>, <a title="Introducción a XHTML" href="http://librosweb.es/xhtml/index.html" target="_self">Introducción a XHTML</a> y <a title="CSS Avanzado" href="http://librosweb.es/css_avanzado/" target="_self">CSS avanzado.</a><a title="CSS Avanzado" href="http://librosweb.es/css_avanzado/" target="_self"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.net/miniposts/libroswebes.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Mejora tu posicionamiento web con la guía de Google</title>
		<link>http://www.itimag.net/miniposts/mejora-tu-posicionamiento-web-con-la-guia-de-google.html</link>
		<comments>http://www.itimag.net/miniposts/mejora-tu-posicionamiento-web-con-la-guia-de-google.html#comments</comments>
		<pubDate>Sat, 13 Dec 2008 23:03:28 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
		
		<category><![CDATA[MiniPosts]]></category>

		<category><![CDATA[Guía SEO web google posicionamiento]]></category>

		<guid isPermaLink="false">http://www.itimag.net/?p=460</guid>
		<description><![CDATA[¿Qué maneras hay de mejorar mi posicionamiento en Google? Google nos da la respuesta a esta pregunta con una fantástica guía que va a ser útil a más de uno. [Ver guía de Google para Principiantes sobre Optimización en Motores de Búsqueda]
]]></description>
			<content:encoded><![CDATA[<p>¿Qué maneras hay de mejorar mi posicionamiento en Google? <a title="guía seo de google para principiantes" href="http://googlewebmaster-es.blogspot.com/2008/11/gua-seo-de-google-para-principiantes.html" target="_self">Google nos da la respuesta</a> a esta pregunta con una fantástica <a title="guía de optimización web para los motores de búsqueda" href="http://www.google.es/webmasters/docs/guia_optimizacion_motores_busqueda.pdf" target="_self">guía</a> que va a ser útil a más de uno. [<a href="http://www.google.es/webmasters/docs/guia_optimizacion_motores_busqueda.pdf">Ver guía de Google para Principiantes sobre Optimización en Motores de Búsqueda</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.net/miniposts/mejora-tu-posicionamiento-web-con-la-guia-de-google.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>15Puzzle en Java</title>
		<link>http://www.itimag.net/juegos/descargar-15puzzle-java.html</link>
		<comments>http://www.itimag.net/juegos/descargar-15puzzle-java.html#comments</comments>
		<pubDate>Thu, 11 Dec 2008 21:54:15 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[Juegos]]></category>

		<category><![CDATA[15 puzzle java]]></category>

		<guid isPermaLink="false">http://www.itimag.net/?p=450</guid>
		<description><![CDATA[Os presento mi 15 puzzle hecho en java. Se trata de aquel juego en el que tienes que ir moviendo las piezas hasta ordenar los números o la imagen.
Os dejo una captura:

Al estar programado en java, el juego es multiplataforma y necesita de éste para funcionar. Puedes comprobar si tienes de java instalado desde aquí.
Puedes [...]]]></description>
			<content:encoded><![CDATA[<p>Os presento mi 15 puzzle hecho en java. Se trata de aquel juego en el que tienes que ir moviendo las piezas hasta ordenar los números o la imagen.</p>
<p>Os dejo una captura:</p>
<p><a href="http://www.itimag.net/wp-content/uploads/2008/12/puzzle.png"></a><a href="http://www.itimag.net/wp-content/uploads/2008/12/puzzle.png"><img class="aligncenter size-medium wp-image-452" title="puzzle" src="http://www.itimag.net/wp-content/uploads/2008/12/puzzle-300x294.png" alt="puzzle" width="300" height="294" /></a></p>
<p>Al estar programado en java, el juego es multiplataforma y necesita de <a title="Java Download" href="http://java.com/es/download/">éste</a> para funcionar. Puedes <a title="Comprobar java" href="http://java.com/es/download/installed.jsp?detect=jre&amp;try=1">comprobar si tienes de java instalado desde aquí</a>.</p>
<p>Puedes bajar el juego de aquí:<a href="http://www.itimag.net/wp-content/uploads/2008/12/15puzzleitimagnet.jar"> Descargar</a></p>
<p>La imagen que aparece en el juego pertenece al usuario <a title="Einen Gallery" href="http://einen.deviantart.com/gallery/" target="_self">einen</a> de <a title="DeviantArt" href="http://einen.deviantart.com/art/Koopa-Photoshoot-105863488" target="_self">deviantart</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.net/juegos/descargar-15puzzle-java.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress 2.7 RC1</title>
		<link>http://www.itimag.net/miniposts/wordpress-27-rc1.html</link>
		<comments>http://www.itimag.net/miniposts/wordpress-27-rc1.html#comments</comments>
		<pubDate>Tue, 02 Dec 2008 20:07:42 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
		
		<category><![CDATA[MiniPosts]]></category>

		<category><![CDATA[2.7]]></category>

		<category><![CDATA[descargar]]></category>

		<category><![CDATA[download]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.itimag.net/?p=443</guid>
		<description><![CDATA[Me he enterado gracias a aNieto2k que ya está disponible para descargar la versión RC1 de Wordpress 2.7.
Itimag.net ya funciona utilizando esta nueva versión.

]]></description>
			<content:encoded><![CDATA[<p>Me he enterado gracias a <a title="aNieto2k" href="http://www.anieto2k.com/" target="_self">aNieto2k</a> que ya está disponible para descargar <a href="http://wordpress.org/development/2008/12/wordpress-27-release-candidate-1/">la versión RC1 de Wordpress 2.7</a>.</p>
<p>Itimag.net ya funciona utilizando esta nueva versión.<a href="http://wordpress.org/development/2008/12/wordpress-27-release-candidate-1/"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.net/miniposts/wordpress-27-rc1.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>¿Dos IP en un mismo equipo o servidor?</title>
		<link>http://www.itimag.net/servidores/dos-2-ip-en-un-mismo-equipo-o-servidor.html</link>
		<comments>http://www.itimag.net/servidores/dos-2-ip-en-un-mismo-equipo-o-servidor.html#comments</comments>
		<pubDate>Sat, 22 Nov 2008 00:20:51 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
		
		<category><![CDATA[Curso Adm. Servidores]]></category>

		<category><![CDATA[Servidores]]></category>

		<category><![CDATA[añadir]]></category>

		<category><![CDATA[como]]></category>

		<category><![CDATA[debian]]></category>

		<category><![CDATA[dedicado]]></category>

		<category><![CDATA[fail-over]]></category>

		<category><![CDATA[geolocalizada]]></category>

		<category><![CDATA[how-to]]></category>

		<category><![CDATA[ip]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[server]]></category>

		<category><![CDATA[servidor]]></category>

		<guid isPermaLink="false">http://www.itimag.net/?p=428</guid>
		<description><![CDATA[Seguimos con el curso de administración de servidores.
Este es un ejemplo práctico de como añadir una segunda ip a un servidor en una misma interfaz o tarjeta de red utilizando una ip privada (para que fuera de utilidad, debería ser pública). Esto es útil para poder asignar a nuestro servidor distintas direcciones ip, permitiéndonos de [...]]]></description>
			<content:encoded><![CDATA[<p>Seguimos con el curso de administración de servidores.</p>
<p>Este es un ejemplo práctico de como añadir una segunda ip a un servidor en una misma interfaz o tarjeta de red utilizando una ip privada (para que fuera de utilidad, debería ser pública). Esto es útil para poder asignar a nuestro servidor distintas direcciones ip, permitiéndonos de esta forma crear nuestros servidores de dns (ns1.ejemplo.com y ns2.ejemplo.com) en un mismo equipo sin que los analizadores de dns den error.</p>
<p>Esta acción tiene una desventaja muy grande: si falla nuestro equipo, no se resolverá el dominio/s ya que los dos servidores de nombres de dominio (o DNS) estarán caídos.</p>
<p>Si el servidor DNS y el servidor web que transmite nuestras páginas se encuentran en el mismo equipo, no hará falta que nos preocupemos de lo anterior ya que si se cae el servidor web, no hace falta que intente resolver el dominio ya que no resolverá por mucho que los servidores de dominio si que funcionen.</p>
<p>Tras esta explicación, pasemos a la acción</p>
<p>Veamos nuestra configuración actual. Para ello, escribimos lo siguiente en un el terminal:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ifconfig</span></pre></div></div>

<p>Se visualiza algo como esto:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">itimag@server1:~$ /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:7D:DF:EA:07
          inet addr:192.168.2.222  Bcast:192.168.2.255  Mask:255
          inet6 addr: fe80::2e0:7dff:fedf:ea07/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:739 errors:0 dropped:0 overruns:0 frame:0
          TX packets:295 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:61160 (59.7 KiB)  TX bytes:41734 (40.7 KiB)
          Interrupt:11 Base address:0xc000
&nbsp;
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 b)  TX bytes:560 (560.0 b)</pre></div></div>

<p>Supongamos que queremos añadir la IP AAA.BBB.CCC.DDD a nuestra interfaz de red eth0 (nuestra interfaz de internet por cable).</p>
<p>Para ello, editamos el fichero /etc/network/interfaces de la manera siguiente :</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>interfaces</pre></div></div>

<p>Observamos lo siguiente:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;"># This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
&nbsp;
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
             address xxx.xxx.xxx.xxx
             netmask 255.255.255.0
             gateway xxx.xxx.xxx.xxx</pre></div></div>

<p>Al final del fichero, debemos añadir lo siguiente:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">auto eth0:0
&nbsp;
iface eth0:0 inet static
               address AAA.BBB.CCC.DDD
               netmask 255.255.255.0
               gateway xxx.xxx.xxx.xxx # La puerta de enlace</pre></div></div>

<p>A continuación activamos la nueva interfaz que hemos definido:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">ifup eth0:0</pre></div></div>

<p>Verificamos la configuración :</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">ifconfig</span></pre></div></div>

<p>Nos aparecerá algo parecido a lo siguiente:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">server1:/home/itimag# /sbin/ifconfig
&nbsp;
eth0      Link encap:Ethernet  HWaddr 00:E0:7D:DF:EA:07
          inet addr:192.168.2.222  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:7dff:fedf:ea07/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2033 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1055 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:178474 (174.2 KiB)  TX bytes:173779 (169.7 KiB)
          Interrupt:11 Base address:0xc000
&nbsp;
eth0:0    Link encap:Ethernet  HWaddr 00:E0:7D:DF:EA:07
          inet addr:192.168.2.111  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:11 Base address:0xc000
&nbsp;
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 b)  TX bytes:560 (560.0 b)</pre></div></div>

<p>Ahora añadimos esta misma ip al fichero /etc/resolv.conf añadiendo la siguiente linea al final del fichero:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">nameserver AAA.BBB.CCC.DDD</pre></div></div>

<p>Próximamente más <img src='http://www.itimag.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.net/servidores/dos-2-ip-en-un-mismo-equipo-o-servidor.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Instalar MySQL en el servidor Linux</title>
		<link>http://www.itimag.net/servidores/instalar-mysql-en-el-servidor-linux.html</link>
		<comments>http://www.itimag.net/servidores/instalar-mysql-en-el-servidor-linux.html#comments</comments>
		<pubDate>Mon, 17 Nov 2008 21:57:01 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
		
		<category><![CDATA[Curso Adm. Servidores]]></category>

		<category><![CDATA[Servidores]]></category>

		<category><![CDATA[BBDD]]></category>

		<category><![CDATA[debian]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[server]]></category>

		<category><![CDATA[servidor]]></category>

		<guid isPermaLink="false">http://www.itimag.net/?p=417</guid>
		<description><![CDATA[Para instalar MySQL, debemos abrir una nueva consola, hacer login como root y ejecutar el siguiente comando:

su
apt-get install mysql-server mysql-client libmysqlclient15-dev

Como nosotros queremos que MySQL escuche a todas las peticiones de internet y no únicamente las de localhost, tenemos que editar el fichero /etc/mysql/my.cnf y comentar la linea “bind-address = 127.0.0.1”:

nano /etc/mysql/my.cnf

El fichero resultante debe [...]]]></description>
			<content:encoded><![CDATA[<p>Para instalar MySQL, debemos abrir una nueva consola, hacer login como root y ejecutar el siguiente comando:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">su</span>
<span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server mysql-client libmysqlclient15-dev</pre></div></div>

<p>Como nosotros queremos que MySQL escuche a todas las peticiones de internet y no únicamente las de localhost, tenemos que editar el fichero /etc/mysql/my.cnf y comentar la linea “bind-address = 127.0.0.1”:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>my.cnf</pre></div></div>

<p>El fichero resultante debe quedar así:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">[...]
#bind-address           = 127.0.0.1
[...]</pre></div></div>

<p>Ahora reiniciamos MySQL para que los cambios surjan efecto:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>mysql restart</pre></div></div>

<p>Ahora chequeamos que el servicio se encuentre en escucha. Para ello ejecutamos:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-tap</span></pre></div></div>

<p>Y debemos ver una linea como esta:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">tcp       0      0 *:mysql                 *:*                     LISTEN      3281/mysqld</pre></div></div>

<p>Con la finalidad de proteger mysql y que nadie pueda acceder sin ser autentificado , <strong>debemos asignar una contraseña</strong> al usuario root:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">mysqladmin <span style="color: #660033;">-u</span> root password tu_contraseña
mysqladmin <span style="color: #660033;">-h</span> server1.mi_dominio.com <span style="color: #660033;">-u</span> root password tu_contraseña</pre></div></div>

<p><strong>Nota</strong>: tu_contraseña debe ser substituido por tu contraseña y server1.mi_dominio.com por el tuyo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.net/servidores/instalar-mysql-en-el-servidor-linux.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>La mejor distribución para EeePC - Ubuntu EEE</title>
		<link>http://www.itimag.net/miniposts/ubuntu-eee-pc.html</link>
		<comments>http://www.itimag.net/miniposts/ubuntu-eee-pc.html#comments</comments>
		<pubDate>Sun, 16 Nov 2008 01:48:09 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
		
		<category><![CDATA[MiniPosts]]></category>

		<category><![CDATA[EEE]]></category>

		<category><![CDATA[PC]]></category>

		<category><![CDATA[remix]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.itimag.net/?p=413</guid>
		<description><![CDATA[Si tienes un EeePC y no te gusta la distribución que viene de serie (Xandros), te recomiendo la distribución Ubuntu EEE.  Es muy personalizable y además está adaptada para que funcione con todo el hardware de nuestro pequeño netbook. ¡Una gozada!!
[WebSite][Descargar]
]]></description>
			<content:encoded><![CDATA[<p>Si tienes un<a href="http://www.itimag.net/eee-pc/asus-eee-pc.html" target="_self"> <strong>EeePC</strong></a> y no te gusta la distribución que viene de serie (<a href="http://www.xandros.com/" target="_self">Xandros</a>), te recomiendo la distribución <a href="http://www.ubuntu-eee.com/">Ubuntu EEE</a>.  Es muy personalizable y además está adaptada para que funcione con todo el hardware de nuestro pequeño netbook. ¡Una gozada!!<br/></p>
<p>[<a href="http://www.ubuntu-eee.com/" target="_self">WebSite</a>][<a href="http://heanet.dl.sourceforge.net/sourceforge/ubuntu-eee/ubuntu-eee-8.04.1.iso" target="_self">Descargar</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.net/miniposts/ubuntu-eee-pc.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Instalando un servidor web con Apache + PHP5</title>
		<link>http://www.itimag.net/servidores/como-instalar-un-servidor-web-con-apache-php5-en-linux.html</link>
		<comments>http://www.itimag.net/servidores/como-instalar-un-servidor-web-con-apache-php5-en-linux.html#comments</comments>
		<pubDate>Sun, 09 Nov 2008 18:35:09 +0000</pubDate>
		<dc:creator>Itimag</dc:creator>
		
		<category><![CDATA[Curso Adm. Servidores]]></category>

		<category><![CDATA[Servidores]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[como]]></category>

		<category><![CDATA[debian]]></category>

		<category><![CDATA[guia]]></category>

		<category><![CDATA[instalar]]></category>

		<category><![CDATA[ip]]></category>

		<category><![CDATA[Linux]]></category>

		<category><![CDATA[Php]]></category>

		<category><![CDATA[publica]]></category>

		<category><![CDATA[servidor]]></category>

		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.itimag.net/?p=403</guid>
		<description><![CDATA[Continuando con el curso de administración de servidores, os voy a explicar como instalar un servidor web con apache + PHP5.
Instalamos apache:

apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert

Instalamos PHP5:

apt-get install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl

Durante [...]]]></description>
			<content:encoded><![CDATA[<p>Continuando con el curso de administración de servidores, os voy a explicar como instalar un servidor web con apache + PHP5.</p>
<p>Instalamos apache:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert</pre></div></div>

<p>Instalamos PHP5:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-json php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl</pre></div></div>

<p>Durante la instalación nos aparecerá una pantalla en la que se nos pedirá:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">¿Quiere continuar instalando libc-client sin soporte para Maildir?</pre></div></div>

<p>Marcamos que si.</p>
<p>Una vez realizada la instalación editamos el fichero /etc/apache2/mods-available/dir.conf:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>mods-available<span style="color: #000000; font-weight: bold;">/</span>dir.conf</pre></div></div>

<p>y cambiamos la linea  “DirectoryIndex”:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">&nbsp;
          DirectoryIndex index.html index.htm index.shtml index.cgi
          index.php index.php3 index.pl index.xhtml</pre></div></div>

<p>Editamos el fichero /etc/apache2/ports.conf y añadimos la linea “Listen 443”:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>ports.conf</pre></div></div>

<p>El fichero resultante es:</p>

<div class="wp_syntax"><div class="code"><pre class="null" style="font-family:monospace;">Listen 80
Listen 443</pre></div></div>

<p>Ahora habilitamos algunos módulos de apache (SSL, rewrite, suexec,  i include) mediante los siguientes comandos:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;">a2enmod ssl
a2enmod rewrite
a2enmod suexec
a2enmod include</pre></div></div>

<p>Finalmente, para que los cambios surjan efecto, recargamos  la configuración de Apache:</p>

<div class="wp_syntax"><div class="code"><pre class="bash bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 force-reload</pre></div></div>

<p>Ya tenemos nuestro servidor web en marcha. Ahora simplemente debemos abrir el puerto 80 en nuestro router y nuestro servidor web será accesible en internet escribiendo en el navegador nuestra ip pública.</p>
<p>Un saludo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itimag.net/servidores/como-instalar-un-servidor-web-con-apache-php5-en-linux.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
