1- Instalación de Zimbra 8.6, Centos 7, Configurar DNS. Correo en Linux
El símbolo # al inicio indica que estamos en modo root en la terminal
# yum update
# Y
# S
# yum install bind bind-utils -y
# nano /etc/named.conf
zone “centos.local” IN {
type master;
file “forward.centos”;
allow-update { none };
};
zone “0.0.0.10.in-addr.arpa” IN {
type master;
file “reverser.centos”;
allow-update { none; };
};
# nano /var/named/forward.centos
$TTL 86400
@ IN SOA master.centos.local. root.centos.local. (
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimun TTL
)
@ IN NS master.centos.local
@ IN A 10.0.0.1
@ IN A 10.0.0.12
masterdns IN A 10.0.0.1
client IN A 10.0.0.12
# /var/named/reverser.centos
$TTL 86400
@ IN SOA masterdns.constos.local. root.centos.local.(
2011071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimun TTL
)
@ IN NS masterdns.centos.local.
@ IN PTR master.local.
masterdns IN A 10.0.0.1
client IN A 10.0.0.12
101 IN PTR masterdns.centos.local.
103 IN PTR client.centos.local.
# systemctl enable named
# systemctl start named
# firewall-cmd –permanent –add-port=53/tcp
# firewall-cmd –permanent –add-port=53/udp
# firewall-cmd –reload
# chgrp named -R /var/named
# chown -v root:named /etc/named.conf
# restorecon -rv /var/named
# restorecon /etc/named.conf
# named-checkconf /etc/named.conf
# named-checkzone centos.local /var/named/forward.centos
# named-checkzone centos.local /var/named/reverse.centos
# nano /etc/sysconfig/network-scripts/ifcfg-enp0s3
DNS=10.0.0.1
IPADDRO=10.0.0.1
PREFIXO=8
# nano /etc/resolv.conf
search centos.local
# systemctl restart network
# systemctl enable named
# systemctl start named
# dig masterdns.centos.local
# nslookup centos.local
centos 7