Article View: es.comp.os.linux.programacion
Article #860Re: DNS
From: Pascal Bourguignon
Date: Sat, 09 Sep 2006 02:33
Date: Sat, 09 Sep 2006 02:33
123 lines
4884 bytes
4884 bytes
Pointbreakers <pointbreakers@gmail.com> writes:
> Hola, alguien sabe como configurar los DNS, necesito ayuda, ya que
> quiero montar un servidor web, mi maquina est� detras de un router,
> tengo acceso a todo, pues todo es mio :), pero no logro poner la cosa
> como es
Lo minimum es en el archivo zone.com.ejemplo :
$TTL 300
ejemplo.com. IN SOA ( nombre.de.tu.servidor.dns.com.
pointbreakers.gmail.com.
2006082201 1h 1h 6w 300 )
ejemplo.com. IN MX 10 smtp.ejemplo.com.
*.ejemplo.com. IN MX 10 smtp.ejemplo.com.
ejemplo.com. IN A aaa.bbb.ccc.ddd # direcci�n IP del servidor web
www.ejemplo.com. IN A aaa.bbb.ccc.ddd # direcci�n IP del servidor web
ftp.ejemplo.com. IN A aaa.bbb.ccc.fff # direcci�n IP del servidor ftp
smtp.ejemplo.com. IN A aaa.bbb.ccc.mmm # direcci�n IP del servidor mail
router.ejemplo.com. IN A aaa.bbb.ccc.rrr # direcci�n IP del router
Lo que pasa, es que tu servidor DNS donde publicas el dominio
ejemplo.com no puede tener como nombre un nombre dentro del dominio
ejemplo.com --> nombre.de.tu.servidor.dns.com.). Si no tienes otro
dominio para nombrar tu servidor dns, puedes hacer lo con el proveedor
del nombre de dominio.
Luego hace falta records PTR, pero eso depende del proveedor IP, como
lo hacen. A vecez, tienen records CNAME :
ddd.ccc.bbb.aaa.IN-ADDR.ARPA. CNAME ddd.ejemplo.com.
luego solo tienes que poner un PTR en to dominio:
ddd.ejemplo.com. IN PTR www.ejemplo.com.
rrr.ejemplo.com. IN PTR router.ejemplo.com.
...
o a veces tienes de preguntar para que ponen los records PTR ellos mismo.
Finalmente, tienes que configurar el dominio (la zone) en la
configuraci�n de named.conf:
#
# overall options of the server
#
options {
directory "/var/lib/named";
# the default is to fail, if the master file is not correct
check-names master warn;
pid-file "/var/run/named.pid";
statistics-interval 0;
cleaning-interval 720;
datasize default;
stacksize default;
coresize default;
files unlimited;
recursion yes;
multiple-cnames no;
# the default is to ask the forwarders and if they fail
# try to find the answer yourself, this will only ask the forwarders
#forward only;
# list of DNS servers to ask
forwarders {
193.152.36.5; # 9 scmrro3.nombres.ttd.es
193.152.36.6; # 9 scmrro4.nombres.ttd.es
};
listen-on { 127/8; aaa.bbb.ccc/24; };
};
zone "." IN {
type hint;
file "zone.root";
};
zone "localhost" IN {
type master;
file "zone.localhost";
check-names fail;
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "zone.arpa.in-addr.127.0.0";
check-names fail;
allow-update { none; };
};
zone "ejemplo.com." IN {
type master;
file "/var/lib/named/public-master/zone.com.ejemplo";
allow-update { none; };
notify yes;
allow-transfer { any; };
allow-query { any; };
};
Todo los detalles estan en: http://www.bind9.net/manuals
--
__Pascal Bourguignon__ http://www.informatimago.com/
PLEASE NOTE: Some quantum physics theories suggest that when the
consumer is not directly observing this product, it may cease to
exist or will exist only in a vague and undetermined state.
Technical Details
Message-ID:
<87hczhzs4i.fsf@thalassa.informatimago.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<mn.44b97d694861e2ae.59400@gmail.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f86c8,cc6b05ab4424f216
X-Google-Attributes: gidf86c8,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Pascal Bourguignon <pjb@informatimago.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: DNS
Date: Sat, 09 Sep 2006 04:33:01 +0200
Organization: Informatimago
Lines: 123
Message-ID: <87hczhzs4i.fsf@thalassa.informatimago.com>
References: <mn.44b97d694861e2ae.59400@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: individual.net LsYpHNt5X4MFxiZxyx8w4gMjzyAPPah2OArfuWH9VksefvMEiM
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA
oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9
033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac
l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR
mV+hO/VvFAAAAABJRU5ErkJggg==
X-Accept-Language: fr, es, en
X-Disabled: X-No-Archive: no
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)
Cancel-Lock: sha1:tfnSOuM63O0aPxTygxbKxH6u7jU=