Hispanitat nº 7 Local C

08225, Terrassa (Barcelona)

+34 600 676 872

Soporte Técnico

Lunes-Viernes: 9:30 a 13:30 - 16:30 a 20:00

Sábados a convenir

Forum breadcrumbs - You are here:ForoCategoría principal: ALMA_LINUXSERVIDOR DNS
Por favor, o Regístrate para crear mensajes y debates.

SERVIDOR DNS

yum install bind bind-utils
systemctl enable --now named
systemctl status named
cp /etc/named.conf /etc/named.conf.orig

acl clients {192.168.3.0/24;};
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { any; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
secroots-file "/var/named/data/named.secroots";
recursing-file "/var/named/data/named.recursing";
allow-query { localhost; clients; };
allow-recursion { localhost; clients; };
recursion yes;
allow-update { none; };
allow-transfer { localhost; };
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
include "/etc/named/infcanboada.zones";

nano /etc/named/infcanboada.zones

//forward zone
zone infcanboada.local IN {
type master;
file "infcanboada.local.zone";

};

//backward zone
zone "3.168.192.in-addr.arpa" IN {
type master;
file "infcanboada.local.rzone";

};

cd /var/named

cp -p named.localhost infcanboada.local.zone
cp -p named.localhost infcanboada.local.rzone

1//

$TTL 1D
@ IN SOA @ infcanboada.local. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS @
A 192.168.3.2

srv.infcanboada.local. IN A 192.168.3.2
mail IN A 192.168.3.2
IN MX 10 mail.infcanboada.local.

 

 














named-checkzone example.com example.com.zone
named-checkconf /etc/named.conf

nano /etc/sysconfig/named

//forward zone
zone _example.com_ IN {
        type master;
        file _example.com.zone_;

};

//backward zone
zone "2.0.192.in-addr.arpa" IN {
        type master;
        file _example.com.rzone_;

};
WhatsApp chat