Skip to content

Instantly share code, notes, and snippets.

@jansanchez
Last active August 29, 2015 14:04
Show Gist options
  • Save jansanchez/5b810cd43204afe7de95 to your computer and use it in GitHub Desktop.
Save jansanchez/5b810cd43204afe7de95 to your computer and use it in GitHub Desktop.
todo debian red
apt-get update
INSTALAR SSH
aptitude install openssh-server opeenssh-client
CONFIGURAR SSH
gedit /etc/ssh/sshd_config
COMANDO CONTROL SSH
/etc/init.d/ssh restart
ssh -l edinson 10.30.112.241
INSTALAR DNS (BIND9)
aptitude install bind9 bind9-doc dnsutils
CONFIGURAR DNS (BIND9)
gedit /etc/bind/named.conf.options
forwarders{
// son dns para el servidor
10.30.0.10;
// dns de otro proveedor
200.48.225.130;
};
//OPCIONES DE SEGURIDAD
listen-on port 53 { 127.0.0.1; 10.30.112.240; };
allow-query { 127.0.0.1; 10.30.112.0/24; };
allow-recursion { 127.0.0.01; 10.30.112.0/24; };
allow-transfer { none; };
//listen-on-v6 { any; };
named-checkconf // verifica si esta ok lo que digitamos
gedit /etc/nsswitch.conf
// con esto verificamos si en la linea donde dice hosts: al ultimo diga dns
gedit /etc/resolv.conf
//digitamos
nameserver 127.0.0.1
COMANDO DE CONTROL PARA DNS
/etc/init.d/bind9 restart
CON EL CLIENTE
probamos si funciona el dns
gedit /etc/resolv.conf
aqui digitar
nameserver 10.30.112.240
nslookup 10.30.112.240 o 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment