Skip to content

Instantly share code, notes, and snippets.

@jansanchez
Last active August 29, 2015 14:04
Show Gist options
  • Save jansanchez/4584b2b1ce627a078db4 to your computer and use it in GitHub Desktop.
Save jansanchez/4584b2b1ce627a078db4 to your computer and use it in GitHub Desktop.
Server: /etc/bind/named.conf.options

INSTALAR DNS (BIND9)

aptitude install bind9 bind9-doc dnsutils

CONFIGURAR DNS (BIND9)

gedit /etc/bind/named.conf.options

editamos el named.conf.options

sudo vim /etc/bind/named.conf.options
forwarders {
  // son DNS para el servidor
  10.30.0.10;
  // DNS del otro proveedor
  200.48.225.130;
};

//Opciones de seguridad

listen-on port 53 { 127.0.0.1; 10.30.112.200;  };
allow-query       { 127.0.0.1; 10.30.112.0/24; };
allow-recursion   { 127.0.0.1; 10.30.112.0/24; };
allow-transfer    { none; };

auth-nxdomain no; #conform to RFC1035

// listen-on-v6 { any; };

Para poder validar esta configuración.. en terminal escribir lo siguiente:

named-checkconf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment