Documentos de Académico
Documentos de Profesional
Documentos de Cultura
02 DNScom 2 Dominios
02 DNScom 2 Dominios
Criar e configurar no DNS o domnio teste.com e as seguintes redes: www ftp pop3 smtp 200.221.2.10 201.20.35.11 10.120.2.45 172.16.2.41
#vi /etc/hosts
127.0.0.1 192.168.10.5 localhost.localdomain srv.noite.int.br localhost srv
#vi /etc/network/interfaces
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.10.5 netmask 255.255.255.0 network 192.168.10.0 broadcast 192.168.10.255 gateway 192.168.10.1 dns-nameservers 192.168.10.5 dns-search noite.int.br
#vi /etc/resolv.conf
search noite.int.br domain noite.int.br nameserver 192.168.10.5
#hostname d
noite.int.br
#hostname i
192.168.10.5
#hostname a
srv
Criando os arquivos de dados BD #cp db.empty db.noite.int.br #cp db.empty db.200.221.2 #cp db.empty db.201.20.35 #cp db.empty db.10
Autores: Prof. Felipe Costa Reis e Miguel A. Marquez G.
#vi db.noite.int.br
$TTL @ 86400 IN SOA srv.noite.int.br. root.noite.int.br. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 86400 ) ; Negative Cache TTL
; @ srv www
IN IN IN
#vi db.192.168.10
$TTL @ 86400 IN SOA srv.noite.int.br. root.noite.int.br. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 86400 ) ; Negative Cache TTL srv.noite.int.br. srv.noite.int.br.
; @ 5
IN IN
NS PTR
IN IN IN IN IN
NS A A A A
; @ 10
IN IN
NS PTR
srv.noite.int.br. www.teste.com.
#vi db.201.20.35
$TTL @ 86400 IN SOA srv.noite.int.br. root.noite.int.br. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 86400 ) ; Negative Cache TTL srv.noite.int.br. ftp.teste.com.
; @ 11
IN IN
NS PTR
#vi db.10
$TTL @ 86400 IN SOA srv.noite.int.br. root.noite.int.br. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 86400 ) ; Negative Cache TTL NS PTR srv.noite.int.br. pop3.teste.com.
; @ 45.2.120
IN IN
#vi db.172.16
$TTL @ 86400 IN SOA srv.noite.int.br. root.noite.int.br. ( 1 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 86400 ) ; Negative Cache TTL srv.noite.int.br. smtp.teste.com.
; @ 41.2
IN IN
NS PTR
Restartando o sistema #/etc/init.d/bind9 restart Testando a resoluo #nslookup www.teste.com #nslookup ftp.teste.com #nslookup pop3.teste.com #nslookup smtp.teste.com #nslookup 200.221.2.10 #nslookup 201.20.35.11 #nslookup 10.120.2.45 #nslookup 172.16.2.41