Subido por Machiders tools

Apuntes 21-07

Anuncio
Laboratorio DNS
//Nueva MV SLAX-DNS
//IP 192.168.56.10
//Mascara 255.255.255.0
//Habilitar SSH
- service ssh start
- Systemctl enable ssh
Instalacion pihole DNS
- apt update
- apt install curl
- curl -sSL https://install.pi-hole.net | bash
//Ingresar administrador DNS
192.168.56.10 /admin
contraseña DNS: HhzA53Y3
//modificamos el archivo etc/resolv.conf
nano etc/resolv.conf
dig
configuramos registros de dominios
Ir a local dns dns records
Dominio: gutierrez.lan
Sub-dominios: - cake.gutierrez.lan /var/www/html/app
- form.gutierrez.lan /var/www/html/form
- dokuwiki /var/www/html/dokuwiki
IP servidor web: 192.168.56.11
agregar dominio
dig cake.lopez.lan
configurar nameserver - ingresamos a mv 192.168.56.11 slax-01
- nano etc/resolve.conf
- nameserver 192.168.56.10
configurar nano /etc/apache2/sites-available/cake.gutierrez.lan.conf
<VirtualHost *:80>
ServerAdmin mail@example.com
DocumentRoot /var/www/html/app
ServerName carke.gutierrez.lan
ErrorLog ${APACHE_LOG_DIR}/cake.gutierrez.lan-error-log
CustomLog ${APACHE_LOG_DIR}/cake.gutierrez.lan-access_log common
</VirtualHost>
a2dissite cake.tapia.lan.conf
a2dissite 000-default.conf
systemctl restart apache2
systemctl status apache2
nano /etc/apache2/sites-available/form.tapia.lan.conf
<VirtualHost *:80>
ServerAdmin mail@example.com
DocumentRoot /var/www/html/Formulario
ServerName form.tapia.lan
ErrorLog ${APACHE_LOG_DIR}/form.tapia.lan-error-log
CustomLog ${APACHE_LOG_DIR}/form.tapia.lan-access_log common
</VirtualHost>
a2dissite form.tapia.lan.conf
systemctl restart apache2
systemctl status apache2
Descargar