
Neo_X
(usa CentOS)
Enviado em 16/11/2012 - 17:27h
Obrigado pela ajuda.
/etc/named/named.conf
options {
directory "/var/named";
version "PROTECT";
allow-transfer {192.168.100.1;};
listen-on {127.0.0.1; 192.168.100.1;};
allow-recursion {127.0.0.1; localhost; 192.168.100.0/24;};
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
zone "empresa.local" IN {
type master;
file "/var/named/empresa.local.db";
allow-transfer { none ;};
};
zone "100.168.192.in-addr.arpa" IN {
type master;
file "/var/named/100.168.192.in.addr.arpa.db";
allow-transfer { none;};
};
######################################
/var/named/empresa.local.db
$TTL 86400
@ IN SOA nomedamaquina.empresa.local. root.nomedamaquina.empresa.local. (
7
28800
14400
3600000
86400 )
IN NS nomedamaquina.empresa.local.
nomedamaquina IN A 192.168.100.1
@ IN PTR nomedamaquina.empresa.local.
#####################################
/var/named/100.168.192.in.addr.arpa.db
$TTL 86400
@ IN SOA nomedamaquina.empresa.local. root.nomedamaquina.empresa.local. (
7
28800
14400
3600000
86400 )
IN NS nomedamaquina.empresa.local.
1 IN PTR nomedamaquina.empresa.local.
#####################################