Diferencia entre revisiones de «Instalar Servidor DNS (Bind9)»
De enunpimpam
Línea 67: | Línea 67: | ||
;CNAME Record | ;CNAME Record | ||
− | ftp IN CNAME | + | ftp IN CNAME capi.vm.enunpimpam.com.</syntaxhighlight> |
{|class="cuidado" | {|class="cuidado" | ||
|- | |- | ||
Línea 75: | Línea 75: | ||
|} | |} | ||
===Zona Inversa=== | ===Zona Inversa=== | ||
− | cp | + | cp db.127 reverse.vm.enunpimpam.com |
+ | nano reverse.vm.enunpimpam.com | ||
+ | <syntaxhighlight>; | ||
+ | ; BIND reverse data file for local loopback interface | ||
+ | ; | ||
+ | $TTL 604800 | ||
+ | @ IN SOA localhost. root.vm.enunpimpam.com. ( | ||
+ | 1 ; Serial | ||
+ | 604800 ; Refresh | ||
+ | 86400 ; Retry | ||
+ | 2419200 ; Expire | ||
+ | 604800 ) ; Negative Cache TTL | ||
+ | ;Your Name Server Info | ||
+ | @ IN NS primary.vm.enunpimpam.com. | ||
+ | primary IN A 10.10.20.10 | ||
+ | |||
+ | ;Reverse Lookup for Your DNS Server | ||
+ | 10 IN PTR primary.vm.enunpimpam.com. | ||
+ | |||
+ | ;PTR Record IP address to HostName | ||
+ | 128 IN PTR capi.vm.enunpimpam.com. | ||
+ | 129 IN PTR thor.vm.enunpimpam.com. | ||
+ | 130 IN PTR mail.vm.enunpimpam.com.</syntaxhighlight> | ||
+ | {|class="cuidado" | ||
+ | |- | ||
+ | |align="center"|<i class="fas fa-exclamation-circle text-danger fa-3x"></i> | ||
+ | |'''El PUNTO''' después de cada dominio | ||
+ | |- | ||
+ | |} |
Revisión del 16:01 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 capi.vm.enunpimpam.com.
El PUNTO después de cada dominio |
Zona Inversa
cp db.127 reverse.vm.enunpimpam.com nano reverse.vm.enunpimpam.com
; ; BIND reverse data file for local loopback interface ; $TTL 604800 @ IN SOA localhost. root.vm.enunpimpam.com. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ;Your Name Server Info @ IN NS primary.vm.enunpimpam.com. primary IN A 10.10.20.10 ;Reverse Lookup for Your DNS Server 10 IN PTR primary.vm.enunpimpam.com. ;PTR Record IP address to HostName 128 IN PTR capi.vm.enunpimpam.com. 129 IN PTR thor.vm.enunpimpam.com. 130 IN PTR mail.vm.enunpimpam.com.
El PUNTO después de cada dominio |