0% found this document useful (0 votes)
43 views4 pages

Taller DNS

This document provides instructions for configuring DNS servers as a primary and secondary server with chroot. It includes steps for installing bind packages, copying configuration files, configuring the named.conf files on each server, adding a zone file for the domain "redhat.com" on the primary server, and starting/stopping the named service.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views4 pages

Taller DNS

This document provides instructions for configuring DNS servers as a primary and secondary server with chroot. It includes steps for installing bind packages, copying configuration files, configuring the named.conf files on each server, adding a zone file for the domain "redhat.com" on the primary server, and starting/stopping the named service.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Gua Practica DNS

Instalacin de paquetes en ambos servidores (Primario y Secundario). #yum install bind #yum install bind-chroot Copiamos archivos necesarios en la configuracin de ind con Chroot

#cp -p !etc!named" !var!named!chroot!etc! #cp -rp !usr!share!doc!bind-#$%$&!sample!var!named!" !var!named!chroot!var!named! #cho'n -( named)named !var!named!chroot! #service iptables stop #service avahi-daemon stop Named$conf Servidor Primario$ #vi !var!named!chroot!etc!named$conf // named.conf // // Provided by Red Hat bind pac a!e to confi!ure t"e IS# $I%& named(') &%S // server as a cac"in! only nameserver (as a local"ost &%S resolver only). // // See /usr/s"are/doc/bind(/sample/ for e)ample named confi!uration files. // options * listen+on port ,- * any. /. listen+on+v0 port ,- * 112. /. directory 3/var/named3. dump+file 3/var/named/data/cac"e4dump.db3. statistics+file 3/var/named/data/named4stats.t)t3. memstatistics+file 3/var/named/data/named4mem4stats.t)t3. allo5+query * any. /. recursion yes. allo5+recursion * 26.76.78.6/77. /. for5arders * 26.76.78.22. 26.76.2.-,. /. dnssec+enable yes. dnssec+validation yes. dnssec+loo aside auto. /( Pat" to IS# &9: ey (/ bind eys+file 3/etc/named.iscdlv. ey3. /. lo!!in! *

c"annel default4debu! * file 3data/named.run3. severity dynamic. /. /. ;one 3.3 I% * type "int. file 3named.ca3. /. include 3/etc/named.rfc2<27.;ones3. ;one 3red"at.com3 * type master. file 3red"at.com.;one3. notify yes. allo5+query * any. /. allo5+transfer * 26.76.7=.286. /. also+notify * 26.76.7=.286. /. allo5+update * none. /. /.

named$conf Servidor *sclavo


#vi !var!named!chroot!etc!named$conf // named.conf // // Provided by Red Hat bind pac a!e to confi!ure t"e IS# $I%& named(') &%S // server as a cac"in! only nameserver (as a local"ost &%S resolver only). // // See /usr/s"are/doc/bind(/sample/ for e)ample named confi!uration files. // options * listen+on port ,- * any. /. listen+on+v0 port ,- * 112. /. directory 3/var/named3. dump+file 3/var/named/data/cac"e4dump.db3. statistics+file 3/var/named/data/named4stats.t)t3. memstatistics+file 3/var/named/data/named4mem4stats.t)t3. allo5+query * any. /. recursion yes. allo5+recursion * 26.76.78.6/77. /. for5arders * 26.76.78.22. 26.76.2.-,. /. dnssec+enable yes. dnssec+validation yes. dnssec+loo aside auto.

/( Pat" to IS# &9: ey (/ bind eys+file 3/etc/named.iscdlv. ey3. /. lo!!in! * c"annel default4debu! * file 3data/named.run3. severity dynamic. /. /. ;one 3.3 I% * type "int. file 3named.ca3. /. include 3/etc/named.rfc2<27.;ones3. ;one 3red"at.com3 * type slave. allo5+query * any. /. file 3slaves/red"at.com.;one3. masters * 26.76.7=.2-<. /. /. +rchivo de ,ona- Servidor .aestro #vi !var!named!chroot!var!named!redhat$com$,one >??9 2& @ I% SAB ns2.red"at.com. root@red"at.com. ( 76276'7762 -H 2,C 2D 2& ) I% I% I% ns2 ns7 mail 555 I% I% I% I% I% %S %S CE 26 B B B B B ns2.red"at.com. ns7.red"at.com. mail.red"at.com. 26.76.7=.2-< 26.76.7=.2-< 26.76.7=.286 26.76.7=.2-< 26.76.7=.2-< . serial . refres" . retry . e)piry . minimum

Configuracion de archivo resolv$conf #vi !etc!resolv$conf nameserver 27=.6.6.2

(evisin de archivo configuracin- /ona y 0ogs #named-chec1conf !var!named!chroot!etc!named$conf #named-chec1,one redhat$com !var!named!chroot!var!named!redhat$com$,one #tail -f !var!log!messages 2erramientas DNS #host '''$redhat$com #host -t NS redhat$com #host -t .3 redhat$com #dig '''$redhat$com #nsloo1up '''$redhat$com 4niciar- detener- reiniciar- etc- *l Servicio Named #service named start 5 stop 5 restart 5 status o de la si!uiente manera1 #!etc!init$d!named start 5 stop 5 restart 5 status

You might also like