Sei sulla pagina 1di 5

Configurando Servicio DNS (named.

conf)
Editando archivo de configuracin named.conf

options {
# The directory statement defines the name server's working directory
directory "/var/lib/named";
# Write dump and statistics file to the log subdirectory. The
# pathenames are relative to the chroot jail.
dump-file "/var/log/named_dump.db";
statistics-file "/var/log/named.stats";
notify no;
};
zone "." in {
type hint;
file "root.hint";
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
zone "chontales.uni" in {
type master;
file "/local/chontales.uni";
};
zone "170.1.10.in-addr.arpa" in {
type master;
};

Creando directorio privado

Chontales.uni

Creando archivos privados


;170.1.10
$TTL 2D
@
IN SOA

NS

server root.server.chontales.uni.(
2012370601 ;serial
1D
;Resfrescamiento
2H
;Reintento
1W
;Experiracion
2D)
;Minimo
server.chontales.uni. ;Privado

1
PTR server.chontales.uni.
;Grupo admon
10 PTR pc1.chontales.uni.
11 PTR pc2.chontales.uni.

;chontales.unan
$TTL 2D
@
IN

SOA

pc1
pc2

10.1.170.10
10.1.170.11

server root.server.chontales.uni.(
2012370601 ;serial
1D
;Resfrescamiento
2H
;Reintento
1W
;Experiracion
2D)
;Minimo
NS server.chontales.uni. ;Privado
server A
10.1.170.1
;Grupo admon
A
A

INICIANDO EL SERVICIO DE NOMBRES

PROBANDO EL SERVICIO DE NOMBRES

Encendido automtico de servicio DNS

Configurando DHCP
EDITANDO ARCHIVO DE CONFIGURACIN DE SERVICIO DE DIRECCIONES IP DINMICAS

# /etc/dhcpd.conf
#
# *** PLEASE CONFIGURE IT FIRST ***
#
# Don't forget to set the DHCPD_INTERFACE in the
# /etc/sysconfig/dhcpd file.
#
authoritative;

default-lease-time 600;
max-lease-time 7200;
option domain-name "chontales.uni";
option domain-name-servers 10.1.170.1;
# Use this to enble / disable dynamic dns updates globally.
ddns-update-style none;
# This declaration allows BOOTP clients to get dynamic addresses,
# which we don't really recommend.
subnet 10.1.170.0 netmask 255.255.255.0 {
range dynamic-bootp 10.1.170.10 10.1.170.20;
option broadcast-address 10.1.170.255;
option routers 10.1.170.1;
}
DEFINIENDO LA INTERFAZ QUE ESCUCHA PETICIONES DE RED LOCAL

Cuando existen varias tarjetas de red, se debe definir cual se utilizar

INICIANDO EL SERVICIO DE DIRECCIONES DINMICAS


Para probar los servicios, utilice 2 ventanas de terminales, en una ejecute el servicio, y en la
otra comandos para monitorear el inicio correcto de los mismos.
Terminal#1

Terminal#2
server:~ # cp /dev/null /var/log/messages
server:~ # clear
server:~ # tail -f /var/log/messages
Algo como lo que se muestra en la siguiente imagen es lo que podr observar una vez que
ejecute los comandos indicados en la terminal #2.

Tarea:

Potrebbero piacerti anche