Diferencia entre revisiones de «Instalar Servidor DNS (Bind9)»
De enunpimpam
(Página creada con «category:Linux 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…») |
|||
Línea 26: | Línea 26: | ||
'''/etc/bind/named.conf.local''' | '''/etc/bind/named.conf.local''' | ||
+ | nano /etc/bind/named.conf.local | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
zone "vm.enunpimpam.com" { | zone "vm.enunpimpam.com" { | ||
Línea 36: | Línea 37: | ||
file "/etc/bind/reverse.vm.enunpimpam.com"; | file "/etc/bind/reverse.vm.enunpimpam.com"; | ||
};</syntaxhighlight> | };</syntaxhighlight> | ||
+ | |||
+ | ===Configurar las zonas=== | ||
+ | cp db.local vm.enunpimpam.com | ||
+ | nano vm.enunpimpam.com | ||
+ | |||
+ | <syntaxhighlight>; | ||
+ | ; 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.</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 15:51 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"; };
Configurar las zonas
cp db.local vm.enunpimpam.com nano 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 |