Escolar Documentos
Profissional Documentos
Cultura Documentos
02 DnsReverso PDF
02 DnsReverso PDF
Engenheiro de Software
DNS Reverso
NIC.br
DNS?
John
John Paul
John (1) Paul (2)
George (3)
John (1) Paul (2)
(5) (7)
(6)
(5) (7)
(6)
(5) (7)
(6)
John (1)
hosts.txt
Paul?
John (1) 2
hosts.txt
Paul?
John (1) 2
hosts.txt
Aqui está!
Paul (2)
Paul?
John
(200.160.3.2) 200.160.3.3
hosts.txt
Aqui está!
Eu Ol
so á!
u
o
Paul
DN
S
(200.160.3.3)
hosts.txt
Atualize! Remova John!
Atualize
Paul?
Ringo!
hosts.txt
Remova! Busque!
Adicione
George!
John
Paul
George
Ringo
John.beatles.br.
Paul.beatles.br.
George.beatles.br.
Ringo.beatles.br.
.
br
beatles
br
beatles
X
John Paul George Ringo
E quanto a busca?
.
br
beatles
beatles
beatles
200.160.3.3
beatles
Versão do arquivo
Nome -> IP
IP -> Nome
Etc.
Arquivo de zona
Resource record
Resource record
Exemplos:
beatles.br.
paul.beatles.br.
Arquivo de zona
Resource record
IN: Internet
CH: Chaos
HS: Hesiod
Arquivo de zona
Resource record
Resource record
...
Arquivo de zona
beatles
Paul.beatles.br.?
beatles
ns1.paul.beatles.br.?
...
beatles
br
beatles
br
X beatles
Remova!
Atualize! Master
AXFR/IXFR
br
beatles
br
beatles
beatles
br
Busque! Busque!
beatles
br
beatles
br
ISP
beatles
beatles.br.?
John Paul George Ringo
.
beatles.br.?
br
ISP
beatles
ISP
Por quê? beatles
200.160.3.1 br
86400s
John Paul George Ringo
Servidor DNS
Recursivo! .
200.160.3.1 br
Cache
Diagnóstico
Validação de e-mail
200.160.0.1
200.160.0.1
1.0.160.200.in-addr.arpa.
.
com arpa br
in-addr
160
.
com arpa br
in-addr
160
200.160.0/24 200.160.1/24 200.160.2/24 200.160.3/24
$ORIGIN X.160.200.in-addr.arpa.
$TTL 86400
IN NS ns1.beatles.br.
IN NS ns2.beatles.br.
200.160.0/24 200.160.1/24 200.160.2/24 200.160.3/24
$ORIGIN 1.160.200.in-addr.arpa.
$TTL 86400
IN NS ns1.beatles.br.
IN NS ns2.beatles.br.
1 IN PTR dhcp-1-cliente.beatles.br.
... IN PTR dhcp-2-cliente.beatles.br.
254 IN PTR dhcp-3-cliente.beatles.br.
Arquivo de zona 200.160.1/24
$ORIGIN 1.160.200.in-addr.arpa.
$TTL 86400
IN NS ns1.beatles.br.
IN NS ns2.beatles.br.
ns*.beatles.br.
200.160.0/20
ns*.beatles.br.
200.160.10/24
ns*.paul.beatles.br.
200.160.0/24 200.160.1/24 200.160.2/24 200.160.3/24
X
200.160.8/24 200.160.9/24 200.160.10/24 200.160.11/24
$ORIGIN 10.160.200.in-addr.arpa.
$TTL 86400
IN NS ns1.paul.beatles.br.
IN NS ns2.paul.beatles.br.
16 IN PTR paul.beatles.br.
200.160/20
ns*.beatles.br.
200.160.10/24
ns*.paul.beatles.br.
200.160/20
ns*.beatles.br.
200.160.10/24
ns*.paul.beatles.br.
200.160.10.0/28
ns*.cliente.exemplo.com.br.
Arquivo de zona 200.160.10/24
$ORIGIN 10.160.200.in-addr.arpa.
$TTL 86400
IN NS ns1.paul.beatles.br.
IN NS ns2.paul.beatles.br.
16 IN PTR paul.beatles.br.
Arquivo de zona 200.160.10/24
$ORIGIN 10.160.200.in-addr.arpa.
$TTL 86400
@ IN SOA ...
IN NS ns1.paul.beatles.br.
IN NS ns2.paul.beatles.br.
0/28 IN NS ns1.cliente.exemplo.com.br.
0/28 IN
1 IN
NS
CNAME
ns2.cliente.exemplo.com.br.
1.0/28
RFC 2317
...
14 IN CNAME 14.0/28
16 IN PTR paul.beatles.br.
Arquivo de zona 200.160.10/24
$ORIGIN 10.160.200.in-addr.arpa.
$TTL 86400
@ IN SOA ...
IN NS ns1.paul.beatles.br.
IN NS ns2.paul.beatles.br.
0/28 IN NS ns1.cliente.exemplo.com.br.
0/28 IN NS ns2.cliente.exemplo.com.br.
RFC 2317
$GENERATE 1-14 $ CNAME $.0/28 ; Apenas no BIND
16 IN PTR paul.beatles.br.
Arquivo de zona 200.160.10.0/28
$ORIGIN 0/28.10.160.200.in-addr.arpa.
$TTL 86400
@ IN SOA ...
IN NS ns1.cliente.exemplo.com.br.
IN NS ns2.cliente.exemplo.com.br.
1 IN PTR www.cliente.exemplo.com.br.
...
14 IN PTR email.cliente.exemplo.com.br.
2001:12FF::/32
2001:12FF::/32
f.f.2.1.1.0.0.2.ip6.arpa.
.
com arpa br
ip6 in-addr
0
0
1
.
com arpa br
ip6 in-addr
0
0
1
1
2
f
f
Arquivo de zona 2001:12ff::/32
$ORIGIN f.f.2.1.1.0.0.2.ip6.arpa.
$TTL 86400
IN NS ns1.beatles.br.
IN NS ns2.beatles.br.
$ORIGIN 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.f.f.2.1.1.0.0.2.ip6.arpa.
1 IN PTR beatles.br.
...
Arquivo de zona 2001:12ff::/32
Delegação /30
Regras IPv6
Bloco /30
Delegação
Delegação /31
/32
Bloco /32
Dicas IPv6
dig -x 2001:12ff::1 +noauthority +noadditional
;; QUESTION SECTION:
;1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.f.f.2.1.1.0.0.2.ip6.arpa. IN PTR
;; ANSWER SECTION:
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.f.f.2.1.1.0.0.2.ip6.arpa. 86360 IN
PTR beatles.br.
...
Dicas IPv6
http://zytrax.com/books/dns/ch3/#ipv6-tool
Testando
Consulte os IPs
200.160.1.200 (DHCP)
200.160.10.1 (/28)
2001:fffe::1 (IPv6)
rafael@registro.br