configuraciondns

5
INSTITUTO DE EDUCACION SUPERIOR EL MEJOR INSTITUTO LUMNO: Valentín Vergaray Florentino Cayetano SPECIALIDAD: Computación E Informática ODIGO: 36107 CI. ROFESOR: URSO: Linux URNO: Noche EMA: CONFIGURACION SERVIDOR DNS Mail: [email protected] [email protected] [email protected]

Upload: florentino-valentin-vergaray

Post on 22-Jan-2016

213 views

Category:

Documents


0 download

DESCRIPTION

ccvcv

TRANSCRIPT

Page 1: ConfiguracionDNS

INSTITUTO DE EDUCACION SUPERIOR

EL MEJOR INSTITUTO

LUMNO: Valentín Vergaray Florentino Cayetano

SPECIALIDAD: Computación E

Informática

ODIGO: 36107 CI.

ROFESOR:

URSO: Linux

URNO: Noche

EMA: CONFIGURACION SERVIDOR DNS

Mail: [email protected] [email protected] [email protected]

Page 2: ConfiguracionDNS

26 de febrero

de 2012 CONFIGURACION DEL SERVIDOR DNS (LINUX-CENTOS

A l u m n o : V a l e n t í n V e r g a r a y F l o r e n t i n o C a y e t a n o

Página 2

Configuración del fichero: named.conf

Var/named/chroot/etc/named.conf para dar servicios a la red es lo siguiente:

192.68.200.0/24 , Usuando el Dominio Bertex.org.pe

// Red Hat BIND Configuration Tool

//

// Default initial "Caching Only" name server configuration

//

options {

directory "/var/named";

dump-file "/var/named/data/cache_dump.db";

statistics-file "/var/named/data/named_stats.txt";

/*

* If there is a firewall between you and nameservers you want

* to talk to, you might need to uncomment the query-source

* directive below. Previous versions of BIND always asked

* questions using port 53, but BIND 8.1 uses an unprivileged

* port by default.

*/

// query-source address * port 53;

allow-transfer {none;};

allow-query {192.68.200.0/24;localhost;};

allow-recursion {192.68.200.0/24;localhost;};

forwarders {8.8.8.8; 4.4.4.4;};

};

zone "." IN {

type hint;

file "named.root";

};

zone "localdomain." IN {

type master;

file "localdomain.zone";

allow-update { none; };

};

zone "localhost." IN {

type master;

file "localhost.zone";

allow-update { none; };

};

Page 3: ConfiguracionDNS

26 de febrero

de 2012 CONFIGURACION DEL SERVIDOR DNS (LINUX-CENTOS

A l u m n o : V a l e n t í n V e r g a r a y F l o r e n t i n o C a y e t a n o

Página 3

zone "0.0.127.in-addr.arpa." IN {

type master;

file "named.local";

allow-update { none; };

};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa." IN {

type master;

file "named.ip6.local";

allow-update { none; };

};

zone "255.in-addr.arpa." IN {

type master;

file "named.broadcast";

allow-update { none; };

};

zone "0.in-addr.arpa." IN {

type master;

file "named.zero";

allow-update { none; };

};

zone "Bertex.org.pe." {

type master;

file "Bertex.org.pe.zone";

allow-update { none; };

};

zone "200.68.192.in-addr.arpa" {

type master;

file "200.68.192.in-addr.arpa.zone";

};

include "/etc/rndc.key";

Configuración el fichero de zona:

/var/named/chroot/var/named/Bertex.org.pe.zone

$TTL 86400

@ IN SOA dns. administrador. (

201202182 ;numero de serie

10800 ;tiempo de refresco

Page 4: ConfiguracionDNS

26 de febrero

de 2012 CONFIGURACION DEL SERVIDOR DNS (LINUX-CENTOS

A l u m n o : V a l e n t í n V e r g a r a y F l o r e n t i n o C a y e t a n o

Página 4

3600 ;tiempo de reintentos de consulta

604800 ;tiempo tras el cual expira la zona

68400) ;tiempo total de vida

IN NS dns

Bertex.org.pe. IN A 192.68.200.40

Bertex.pe. IN A 192.68.200.50

IN MX 10 Bertex.org.pe.

dns IN CNAME Bertex.org.pe.

www IN CNAME Bertex.pe.

Configuración el fichero de zona inversa:

/var/named/chroot/var/named/200.68.192.in-addr.arpa.zone

$TTL 86400

@ IN SOA Bertex.org.pe. administrador. (

201202251 ;Nemero de serie

28800 ;Tiempo de refresco

7200 ;Tiempo de reintento de consulta

604800 ;Tiempo tras el cual expira la zona

86400) ;Tiempo total de vida

NS Bertex.org.pe.

NS dns.Bertex.org.pe.

40 PTR Bertex.org.pe.

40 PTR dns.Bertex.org.pe.

50 PTR www.Bertex.pe.

CONFIGURACIÓN DE DHCP

Configuración del fichero:

/etc/dhcpd.conf

#

# DHCP Server Configuration file.

# see /usr/share/doc/dhcp*/dhcpd.conf.sample

#

ddns-update-style ad-hoc;

ignore client-updates;

authoritative;

default-lease-time 900;

max-lease-time 7200;

option ip-forwarding off;

# nombre de la red

Page 5: ConfiguracionDNS

26 de febrero

de 2012 CONFIGURACION DEL SERVIDOR DNS (LINUX-CENTOS

A l u m n o : V a l e n t í n V e r g a r a y F l o r e n t i n o C a y e t a n o

Página 5

shared-network redlocal {

subnet 192.68.200.0 netmask 255.255.255.0 {

option routers 192.68.200.11;

option subnet-mask 255.255.255.0;

option broadcast-address 192.68.200.255;

option domain-name-servers 192.68.200.10;

option netbios-name-servers 192.68.200.10;

range 192.68.200.179 192.68.200.199;

}

}