Diferencia entre revisiones de «Instalar Servidor DNS (Bind9)»
De enunpimpam
Línea 38: | Línea 38: | ||
};</syntaxhighlight> | };</syntaxhighlight> | ||
− | === | + | ===Zona directa=== |
− | cp db.local vm.enunpimpam.com | + | cp db.local forward.vm.enunpimpam.com |
− | nano vm.enunpimpam.com | + | nano forward.vm.enunpimpam.com |
<syntaxhighlight>; | <syntaxhighlight>; | ||
Línea 74: | Línea 74: | ||
|- | |- | ||
|} | |} | ||
+ | ===Zona Inversa=== | ||
+ | cp |
Revisión del 15:56 10 may 2020
Ubuntu 20.04 = 10.10.20.10
Nombre del domimio = vm.enunpimpam.com
Red = 10.10.20.0/24
Instalar Bind 9
apt-get install bind9 bind9utils bind9-doc dnsutils
Configurar Bind9
/etc/bind/named.conf.options
nano /etc/bind/named.conf.options
options { directory "/var/cache/bind"; auth-nxdomain no; # conform to RFC1035 // listen-on-v6 { any; }; listen-on port 53 { localhost; 10.10.20.0/24; }; allow-query { localhost; 10.10.20.0/24; }; forwarders { 8.8.8.8; }; recursion yes; };
/etc/bind/named.conf.local
nano /etc/bind/named.conf.local
zone "vm.enunpimpam.com" { type master; file "/etc/bind/forward.vm.enunpimpam.com"; }; zone "20.10.10.in-addr.arpa" { type master; file "/etc/bind/reverse.vm.enunpimpam.com"; };
Zona directa
cp db.local forward.vm.enunpimpam.com nano forward.vm.enunpimpam.com
; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA localhost. root.localhost. ( 2 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ;Name Server Information @ IN NS primary.vm.enunpimpam.com. ;IP address of Your Domain Name Server(DNS) primary IN A 10.10.20.10 ;Mail Server MX (Mail exchanger) Record vm.enunpimpam.com. IN MX 10 mail.vm.enunpimpam.com. ;A Record for Host names capi IN A 10.10.20.128 thor IN A 10.10.20.129 mail IN A 10.10.20.130 ;CNAME Record ftp IN CNAME www.vm.enunpimpam.com.
El PUNTO después de cada dominio |
Zona Inversa
cp