BINDBIND (Berkeley Internet Name Domain ou, como chamado previamente, Berkeley Internet Name Daemon) e o servidor para o protocolo DNS mais utilizado na Internet, especialmente em sistemas do tipo Unix,INICIANDO A INSTALACAO DO BINDInstale o Pacote bind9# apt-get install bind9CONFIGURANDO O BINDApos ter instalado o pacote do BIND e hora de configurar um dominio (meudominio.com.br) O primeiro deles e o /etc/named.conf, caso esse arquivo ja exista, faca um backup dele e crie um novo com o conteudo abaixo. __________________________________________________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. */ // query-source address * port 53; transfer-format many-answers;};controls { inet * port 953 allow { 127.0.0.1; }; // Para usar o rndc apenas em localhost};//// a caching only nameserver config//zone "." IN { type hint; file "caching-example/named.ca";};zone "localhost" IN { type master; file "caching-example/localhost.zone"; allow-update { none; };};zone "meudominio.com.br" IN { type master; file "meudominio.com.br.domain"; allow-update { none; };};__________________________________________________Agora vamos criar o /var/named/caching-example/named.ca. necessario a criacao dos diretorios named e caching-example e tambem o arquivo named.ca __________________________________________________; This file holds the information on root name servers needed to; initialize cache of Internet domain name servers; (e.g. reference this file in the "cache . <file>"; configuration file of BIND domain name servers).;; This file is made available by InterNIC registration services; under anonymous FTP as; file domain/named.root; on server FTP.RS.INTERNIC.NET; -OR- under Gopher at RS.INTERNIC.NET; under menu InterNIC Registration Services (NSI); submenu InterNIC Registration Archives; file named.root;; last update: Aug 22, 1997; related version of root zone: 1997082200; ;; formerly NS.INTERNIC.NET;. 3600000 IN NS A.ROOT-SERVERS.NET.A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4;; formerly NS1.ISI.EDU;. 3600000 NS B.ROOT-SERVERS.NET.B.ROOT-SERVERS.NET. 3600000 A 128.9.0.107;; formerly C.PSI.NET;. 3600000 NS C.ROOT-SERVERS.NET.C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12;; formerly TERP.UMD.EDU;. 3600000 NS D.ROOT-SERVERS.NET.D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90;; formerly NS.NASA.GOV;. 3600000 NS E.ROOT-SERVERS.NET.E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10;; formerly NS.ISC.ORG;. 3600000 NS F.ROOT-SERVERS.NET.F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241;; formerly NS.NIC.DDN.MIL;. 3600000 NS G.ROOT-SERVERS.NET.G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4;; formerly AOS.ARL.ARMY.MIL;. 3600000 NS H.ROOT-SERVERS.NET.H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53;; formerly NIC.NORDU.NET;. 3600000 NS I.ROOT-SERVERS.NET.I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17;; temporarily housed at NSI (InterNIC);. 3600000 NS J.ROOT-SERVERS.NET.J.ROOT-SERVERS.NET. 3600000 A 198.41.0.10;; housed in LINX, operated by RIPE NCC;. 3600000 NS K.ROOT-SERVERS.NET.K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129;; temporarily housed at ISI (IANA);. 3600000 NS L.ROOT-SERVERS.NET.L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12;; housed in Japan, operated by WIDE;. 3600000 NS M.ROOT-SERVERS.NET.M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33; End of File__________________________________________________Agora vamos criar o /var/named/caching-example/localhost.zone __________________________________________________$TTL 86400$ORIGIN localhost.@ 1D IN SOA @ root ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum 1D IN NS @ 1D IN A 127.0.0.1__________________________________________________Vamos criar o arquivo referente ao seu dominio /var/named/meudominio.com.br.domain: __________________________________________________$TTL 86400; Authoritative data for meudominio.com.br;@ IN SOA localhost. root.meudominio.com.br. ( 2004102897 ; Serial (yymmddxx) 10800 ; Refresh 3 hours 3600 ; Retry 1 hour 36000 ; Expire 10 hours 86400 ) ; Minimum 24 hours IN NS ns1.meudominio.com.br. IN NS ns2.meudominio.com.br.;;Recebimento de mensagens de mail;meudominio.com.br. IN MX 0 mxmeudominio.com.br. IN MX 10