You are on page 1of 3

DHCP SERVER

nano /etc/dhcp/dhcpd.conf

copiamos esto de acuerdo a la ip

option domain-name "senanet.local";

option domain-name-servers 192.168.5.5;

deny bootp;

default-lease-time 600;

max-lease-time 7200;

ddns-update-style none;

subnet 192.168.5.0 netmask 255.255.255.0 {

range 192.168.5.100 192.168.5.200;

option routers 192.168.5.1;

nano /etc/sysconfig/network-scripts

la dirección se cambia a static


DNS SERVER

1 nano /etc/named .conf

se modifican las líneas y se agregan las zonas

listen-on port 53 { 127.0.0.1; any; };

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

creamos la zona

zone "senanet.local" IN {

type master;

file "zona.dir";

};

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

type master;

file "zona.inv";

};

2 cd /etc/named (listamos y creamos las zonas)

touch zona.dir

touch zona.inv

3 nano zona.dir

$TTL 3H

@ IN SOA senanet.local. root.senanet.local. (

0 ; serial

1D ; refresh

1H ; retry

1W ; expire

3H ) ; minimum

IN NS senanet.local.

IN A 192.168.5.5

www IN A 192.168.5.5
4 nano zona.inv

$TTL 3H

@ IN SOA senanet.local. root.senanet.local. (

0 ; serial

1D ; refresh

1H ; retry

1W ; expire

3H ) ; minimum

IN NS www.senanet.local.

5 IN PTR www.senanet.local.

5 subimos el servicio systemctl start named

Systemctl status named (verificar)