.
This commit is contained in:
17
Confs/srv1/dns/db.0.17.172
Normal file
17
Confs/srv1/dns/db.0.17.172
Normal file
@@ -0,0 +1,17 @@
|
||||
$TTL 3600 ; Tempo de vida das respostas fornecidas pelo DNS (cache)
|
||||
@ IN SOA ns1.fatecseg.edu.br. hostmaster.fatecseg.edu.br. (
|
||||
2024020901 ; Serial para controle de atualizações entre master e slave
|
||||
28800 ; Tempo de atualizações entre master e slave (refresh)
|
||||
7200 ; Tempo de atualizações caso o refresh falhe
|
||||
604800 ; Tempo de expiração do slave caso não contate o master
|
||||
7200 ) ; Tempo de vida das respostas negativas do servidor
|
||||
|
||||
NS ns1.fatecseg.edu.br.
|
||||
|
||||
1 PTR ns1.fatecseg.edu.br.
|
||||
2 PTR ns2.fatecseg.edu.br.
|
||||
2 PTR www.fatecseg.edu.br.
|
||||
3 PTR smtp.fatecseg.edu.br.
|
||||
4 PTR smtp2.fatecseg.edu.br.
|
||||
5 PTR pop3.fatecseg.edu.br.
|
||||
6 PTR blog.fatecseg.edu.br.
|
||||
24
Confs/srv1/dns/db.fatecseg.edu.br
Normal file
24
Confs/srv1/dns/db.fatecseg.edu.br
Normal file
@@ -0,0 +1,24 @@
|
||||
$TTL 3600 ; Tempo de vida das respostas fornecidas pelo DNS (cache) (1H)
|
||||
@ IN SOA ns1.fatecseg.edu.br. hostmaster.fatecseg.edu.br. (
|
||||
2024020901 ; Serial para controle de atualizações entre master e slave
|
||||
28800 ; Tempo de atualizações entre master e slave (refresh) (8H)
|
||||
7200 ; Tempo de atualizações caso o refresh falhe (2H)
|
||||
604800 ; Tempo de expiração do slave caso não contate o master (7 dias)
|
||||
7200 ) ; Tempo de vida das repostas negativas do servidor (2H)
|
||||
|
||||
NS ns1.fatecseg.edu.br.
|
||||
NS ns2.fatecseg.edu.br.
|
||||
IN MX 10 smtp.fatecseg.edu.br.
|
||||
IN MX 20 smtp2.fatecseg.edu.br.
|
||||
|
||||
fatecseg.edu.br. A 172.17.0.2
|
||||
ns1 A 172.17.0.1
|
||||
ns2 A 172.17.0.2
|
||||
www A 172.17.0.2
|
||||
smtp A 172.17.0.3
|
||||
smtp2 A 172.17.0.4
|
||||
pop3 A 172.17.0.5
|
||||
blog A 172.17.0.6
|
||||
ftp A 172.17.0.3
|
||||
webmail CNAME pop3
|
||||
zabbix CNAME www
|
||||
15
Confs/srv1/dns/named.conf.local
Normal file
15
Confs/srv1/dns/named.conf.local
Normal file
@@ -0,0 +1,15 @@
|
||||
// DNS
|
||||
zone "fatecseg.edu.br" IN {
|
||||
type master;
|
||||
file "/etc/bind/domains/fatecseg/db.fatecseg.edu.br";
|
||||
allow-transfer { 172.17.0.2; }; // Permite a transferência de zona para o IP especificado
|
||||
also-notify { 172.17.0.2; }; // Notifica este IP sobre alterações na zona
|
||||
};
|
||||
|
||||
// DNS Reverso
|
||||
zone "0.17.172.in-addr.arpa" {
|
||||
type master;
|
||||
file "/etc/bind/domains/fatecseg/db.0.17.172";
|
||||
allow-transfer { 172.17.0.2; }; // Permite a transferência de zona reversa para o IP especificado
|
||||
also-notify { 172.17.0.2; }; // Notifica este IP sobre alterações na zona reversa
|
||||
};
|
||||
34
Confs/srv1/dns/named.conf.options
Normal file
34
Confs/srv1/dns/named.conf.options
Normal file
@@ -0,0 +1,34 @@
|
||||
acl "rede_interna" {
|
||||
172.17.0.0/24; // Definição de uma ACL (Access Control List) chamada "rede_interna", permitindo o intervalo de IPs 172.17.0.0/24.
|
||||
};
|
||||
|
||||
options {
|
||||
directory "/var/cache/bind"; // Diretório onde o BIND armazena arquivos de cache.
|
||||
|
||||
// If there is a firewall between you and nameservers you want
|
||||
// to talk to, you may need to fix the firewall to allow multiple
|
||||
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
|
||||
|
||||
// If your ISP provided one or more IP addresses for stable
|
||||
// nameservers, you probably want to use them as forwarders.
|
||||
// Uncomment the following block, and insert the addresses replacing
|
||||
// the all-0's placeholder.
|
||||
|
||||
forwarders { // Configuração de servidores de encaminhamento para resolver consultas DNS.
|
||||
8.8.8.8; // Google Public DNS (primário).
|
||||
8.8.4.4; // Google Public DNS (secundário).
|
||||
};
|
||||
|
||||
//========================================================================
|
||||
// If BIND logs error messages about the root key being expired,
|
||||
// you will need to update your keys. See https://www.isc.org/bind-keys
|
||||
//========================================================================
|
||||
|
||||
dnssec-validation no; // Desativa a validação DNSSEC.
|
||||
minimal-responses yes; // Respostas mínimas, enviando apenas os dados necessários na resposta DNS.
|
||||
version "Empresa FatecSeg"; // Define uma string personalizada para a versão do BIND que será exibida.
|
||||
allow-query-cache { rede_interna; }; // Permite cache de consultas para a ACL "rede_interna".
|
||||
allow-query { any; }; // Permite consultas DNS de qualquer origem.
|
||||
allow-recursion { rede_interna; }; // Permite recursão DNS apenas para a ACL "rede_interna".
|
||||
listen-on-v6 { any; }; // Escuta requisições em qualquer interface IPv6.
|
||||
};
|
||||
Reference in New Issue
Block a user