Giter Site home page Giter Site logo

ejerciciodns's Introduction

EjercicioDns

Crear un servidor DNS con las siguientes zonas:

  • sitioa.com
    • www web con información de java.
    • ftp servidor ftp.
  • sitiob.net
    • www web con información de C#
    • ftp servidor ftp.
  • sitioc.net
    • www web con información de Oracle.
    • ftp servidor ftp.

Crear una máquina virtual con un entorno gráfico. Esta accederá a los sitios web. También tendrá acceso a cualquier sitio web de internet.
El servidor DNS será RAID 0.
Los Servidores web ftp serán RAID 5.

Configuracion dns:

#named.conf.local  
zone "sitioa.com " {  
        type master;  
    file "/etc/bind/rd.sitioa.com ";  
};  
  
zone "sitiob.net " {  
        type master;  
    file "/etc/bind/rd.sitiob.net ";  
};  
  
zone "sitioc.net " {  
        type master;  
    file "/etc/bind/rd.sitioc.net ";  
};  
  
  
zone "5.168.192.in-addr.arpa" {  
    type master;  
        file "/etc/bind/r1.192.168.5";  
};  
  
#named.conf.options  
options {  
    directory "/var/cache/bind";  
  
     forwarders {  
            8.8.8.8;  
        80.58.61.250;  
     };  
  
    dnssec-validation auto;  

    auth-nxdomain no;    # conform to RFC1035  
    listen-on-v6 { any; };  
};  
  
#rd.sitioa.com  
$TTL 38400  
  
@   IN  SOA server01.sitioa.com. correoadmin.sitioa.com. (  
            2014092901  
            28800  
            3600  
            604800  
            38400 )  
  
@ IN NS server01.sitioa.com.  
server01.sitioa.com. IN A 192.168.5.20  
www.sitioa.com. IN CNAME server01.sitioa.com.  
  
#rd.sitiob.net  
$TTL 38400  
  
@   IN  SOA server02.sitiob.net. correoadmin.sitiob.net. (  
            2014092901  
            28800  
            3600  
            604800  
            38400 )  
  
@ IN NS server02.sitiob.net.  
server02.sitiob.net. IN A 192.168.5.21  
www.sitiob.com. IN CNAME server02.sitiob.net.  
  
#rd.sitioc.net  
$TTL 38400  
  
@   IN  SOA server03.sitioc.net. correoadmin.sitioc.net. (  
            2014092901  
            28800  
            3600  
            604800  
            38400 )  
  
@ IN NS server03.sitioc.net.  
server03.sitioc.net. IN A 192.168.5.22  
www.sitioc.com. IN CNAME server03.sitioc.net.  
  
#ri.192.168.5  
$TTL 38400  
  
@ IN SOA servidor01.dam1.com. correoadmin.dam1.com. (  
    2014092900;  //num serie  
    28800; //refresco  
    3600;  //reintentos  
    604800; //caducidad  
        38400); // tiempo en caché  
  
@ IN NS server01.  
20 IN PTR server01.  
  
@ IN NS server02.  
21 IN PTR server02.  
  
@ IN NS server03.  
22 IN PTR server03.  

Configuracion router:

Editamos el archivo sysctl.conf:

nano /etc/sysctl.conf  

Descomentamos la linea:

net.ipv4.ip_forward=1  

Creamos un archivo llamado router.sh

nano router.sh

Le añadimos las 2 siguientes lineas:

#!/bin/bash  
iptables -t nat -A POSTROUTING -o ens33 -j MASQUERADE  

editamos el archivo /etc/rc.local y le añadimos lo siguiente delante de Exit 0:

sh /home/usuario/router.sh  

Raid0:
Raid0

Raid5:
Raid5

ejerciciodns's People

Contributors

gvm92 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.