Páginas

sábado, 27 de fevereiro de 2010

Named.conf e Zonas

# NAMED.CONF

root@srv01:/var/named# cat /etc/named.conf
options {
directory "/var/named";
/*
* 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.
*/
listen-on { any; };
// query-source address * port 53;
};

//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "caching-example/named.root";
};

zone "localhost" IN {
type master;
file "caching-example/localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "caching-example/named.local";
allow-update { none; };
};


# ZONA

root@srv01:/var/named# cat empresa.com.br.zone
$TTL 86400
@ IN SOA ns01.empresa.com.br. hostmaster.empresa.com.br. (
2004101901 ;Serial de sincronização
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

NS ns01.empresa.com.br.
NS ns02.empresa.com.br.
IN MX 10 empresa.com.br.

localhost IN A 127.0.0.1
empresa.com.br. IN A 192.168.2.202
ns01 IN A 192.168.2.202
ns02 IN A 192.168.2.203
www IN A 192.168.2.202
ftp IN A 192.168.2.202
mail IN CNAME empresa.com.br.
pop IN CNAME empresa.com.br.
router IN A 192.168.2.254
root@srv01:/var/named#


# REVERSO

root@srv01:/var/named# cat empresa.com.br.rev
$TTL 86400
$ORIGIN empresa.com.br.
2.168.192.in-addr.arpa IN SOA ns01.empresa.com.br. hostmaster.empresa.com.br. (
2004101901 ; Serial de sincronização
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

NS ns01.empresa.com.br.

202 IN PTR ns01
202 IN PTR www
203 IN PTR ns02
root@srv01:/var/named#

Nenhum comentário:

Postar um comentário