Last active
October 18, 2020 21:59
-
-
Save giosave/21d0725c20b1dfae9ce2ebc6656be675 to your computer and use it in GitHub Desktop.
Referencias para la instalacion y configuracion de un DNS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Comandos y configuracion utilizada en el video | |
## Configuracion Inicial | |
apt install net-tools | |
sudo ifconfig | |
/sbin/ifconfig | |
dmesg | grep -i eth0 | |
nano /etc/network/interfaces | |
nano /etc/default/grub | |
"net.ifnames=0 biosdevname=0" | |
grub-mkconfig -o /boot/grub/grub.cfg | |
## Configurar TARJETA RED | |
cd etc/network | |
nano interfaces | |
------COFIGURACION 1 | |
auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet static | |
address 192.168.0.121 | |
netmask 255.255.255.0 | |
network 192.168.0.0 | |
broadcast 192.168.0.1 | |
gateway 192.168.0.1 | |
------COFIGURACION 2 | |
auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet static | |
address 192.168.0.100 | |
netmask 255.255.0.0 | |
network 192.168.0.0 | |
broadcast 192.168.225.225 | |
gateway 192.168.0.1 | |
------ | |
nano /etc/resolv.conf | |
nameserver 8.8.8.8 | |
/etc/init.d/networking restart //reiniciar servicio de red | |
ifdown eth0 //deshabilita la tarjeta de red | |
ifup eth0 //habilita la tarjeta de red | |
---PROBANDO | |
ping 192.168.0.100(mi TCP/IP) | |
ping 192.168.0.1(Gatawey) | |
## Apache | |
apt install apache2 | |
apt install iceweasel | |
ce /etc/apache2/ | |
ls -ltr //ver directorio con permisos | |
/etc/init.d/apache2 restart //reiniciar servicios | |
## DNS | |
apt install bind9 | |
cd /etc/bind/ | |
ls -ltr | |
cp db.local db.sanchezgio //Ejemplo de video | |
cp db.local db.192 //Ejemplo de video | |
nano db.sanchezgio //En video se muestra la configuracion | |
nano db.192 //En video se muestra la configuracion | |
----Configurar named.conf | |
nano named.conf | |
---------named.conf | |
zone "sanchezgio.com" {//busqueda directa | |
type master; | |
file "/etc/bin/db.sanchezgio"; | |
}; | |
zone "192.in-addr.arpa" {//busqueda inversa | |
type master; | |
file "/etc/bind/db.192"; | |
}; | |
------------ | |
-------Reiniciar servicio | |
/etc/init.d/bind9 restart | |
--Hacer pruebas | |
www.sanchezgio.com //desde navegador ICEWEASEL | |
host www.sanchezgio.com //En terminal | |
nslookup sanchezgio.com //En terminal: Regresa direccion | |
### REFERENCIAS | |
GRUB | |
http://www.linuxfromscratch.org/lfs/view/7.8-rc1/chapter08/grub.html | |
https://unix.stackexchange.com/questions/232730/grub-not-loading-config-file-or-booting-into-linux-automatically | |
DISABLING CONSISTENT NETWORK DEVICE NAMING | |
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-disabling_consistent_network_device_naming | |
net.ifnames biosdevname kernel command StackOverflow | |
https://stackoverflow.com/questions/34924826/when-i-add-the-option-net-ifnames-0-biosdevname-0-in-kernel-command-the-ip-rout | |
Descripcion de net.ifnames = 0 | |
https://wiki.debian.org/NetworkInterfaceNames#:~:text=The%20simple%20way%20of%20disabling,grub%20and%20running%20update%2Dgrub. | |
https://www.it-swarm.dev/es/boot/sudo-update-grub-no-funciona/961573388/ | |
https://www.gnu.org/software/grub/manual/grub/html_node/Simple-configuration.html | |
https://living-sun.com/es/linux/545813-ls-ltr-command-in-unix-and-linux-behaviour-linux-unix-ls.html | |
https://wiki.debian.org/es/NetworkConfiguration | |
https://www.zeppelinux.es/instalacion-y-configuracion-de-bind9-en-debian/ | |
https://vitux.com/how-to-start-stop-and-restart-services-in-debian-10/ | |
https://www.zeppelinux.es/instalacion-y-configuracion-de-bind9-en-debian/ | |
https://www.it-swarm.dev/es/networking/ayuda-para-configurar-la-busqueda-inversa-con-bind9/961066516/ | |
https://www.swiftstack.com/docs/install/configure_networking.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment