---------------------------------------------------------------------
named.conf
---------------------------------------------------------------------
[COLOR=#333333][FONT=Arial][SIZE=3][root@fsrv etc]# [B]vim /etc/named.conf[/B][/SIZE][/FONT][/COLOR]
[COLOR=#333333][FONT=Arial]// generated by named-bootconf.pl[/FONT][/COLOR]
[FONT=Arial][COLOR=#333333]options {[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]directory "/var/named";[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]/*[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]* If there is a firewall between you and nameservers you want[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]* to talk to, you might need to uncomment the query-source[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]* directive below. Previous versions of BIND always asked[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]* questions using port 53, but BIND 8.1 uses an unprivileged[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]* port by default.[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]*/[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]query-source address * port 53;[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]listen-on { 127.0.0.1/32; 192.168.1.2/32; };[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333][B]allow-recursion { 127.0.0.1/32; 10.114.60.0/24; };[/B][/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]};[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]//[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]// a caching only nameserver config[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]//[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]controls {[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]inet 127.0.0.1 allow { localhost; } keys { rndckey; };[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]};[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]zone "." IN {[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]type hint;[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]file "named.ca";[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]};[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]zone "localhost" IN {[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]type master;[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]file "localhost.zone";[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]allow-update { none; };[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]};[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]zone "0.0.127.in-addr.arpa" IN {[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]type master;[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]file "named.local";[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]allow-update { none; };[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333]};[/COLOR][/FONT]
[FONT=Arial][COLOR=#333333][B]zone "[/B][COLOR=#000000]cdc.com.br[/COLOR][B]" IN {[/B][/COLOR][/FONT]
[COLOR=#333333][B][FONT=Arial]type master;[/FONT][/B][/COLOR]
[COLOR=#333333][B][FONT=Arial]file "db.[/FONT][/B][FONT=Arial][COLOR=#000000]cdc.com.br[/COLOR][B]";[/B][/FONT]
[B][FONT=Arial]};[/FONT][/B]
[B][FONT=Arial]zone "[/FONT][/B][FONT=Arial][COLOR=#000000]1.168.192.in-addr.arpa[/COLOR][B]" IN {[/B][/FONT]
[B][FONT=Arial]type master;[/FONT][/B]
[B][FONT=Arial]file "db.10.114.60.0";[/FONT][/B]
[B][FONT=Arial]};[/FONT][/B]
[FONT=Arial]include "/etc/rndc.key";[/FONT]
[/COLOR]
----------------------------------------------------------------------
cdc.com.br.hosts
-----------------------------------------------------------------------
[COLOR=#333333][FONT=Arial][SIZE=3]$TTL 86400[/SIZE][/FONT][/COLOR]
[SIZE=3][FONT=Arial][COLOR=#333333]@ IN SOA [COLOR=#000000]servidor.cdc.com.br[/COLOR]. admin.[COLOR=#000000]cdc.com.br[/COLOR]. ([/COLOR][/FONT][/SIZE]
[COLOR=#333333][SIZE=3][FONT=Arial]2008080511 ; serial, todays date + todays serial #[/FONT][/SIZE][/COLOR]
[COLOR=#333333][SIZE=3][FONT=Arial]28800 ; refresh, seconds[/FONT][/SIZE][/COLOR]
[COLOR=#333333][SIZE=3][FONT=Arial]7200 ; retry, seconds[/FONT][/SIZE][/COLOR]
[COLOR=#333333][SIZE=3][FONT=Arial]604800 ; expire, seconds[/FONT][/SIZE][/COLOR]
[COLOR=#333333][SIZE=3][FONT=Arial]86400 ) ; minimum, seconds[/FONT][/SIZE][/COLOR]
[COLOR=#333333][SIZE=3][FONT=Arial];[/FONT][/SIZE][/COLOR]
[COLOR=#333333][SIZE=3][FONT=Arial]NS [COLOR=#000000]servidor.cdc.com.br[/COLOR]. ; DNS Primario[/FONT][/SIZE]
[SIZE=3][FONT=Arial]NS [COLOR=#000000]servidor1.cdc.com.br[/COLOR]. ; DNS Secundario isso se você possuir um[/FONT][/SIZE]
[SIZE=3][FONT=Arial];[/FONT][/SIZE][/COLOR]
[COLOR=#333333][FONT=Arial][SIZE=3]MX 10 fitautomoveis.com.br.[/SIZE][/FONT][/COLOR]
[COLOR=#333333][FONT=Arial][SIZE=3][COLOR=#000000]cdc.com.br[/COLOR]. A 192.168.0.31 ; Aqui coloque o IP do Servidor[/SIZE][/FONT]
[SIZE=3][FONT=Arial]www A 192.168.0.31 ; Aqui coloque o IP do Servidor[/FONT][/SIZE][/COLOR]
[COLOR=#333333][FONT=Arial][SIZE=3]www CNAME [COLOR=#333333][FONT=Arial][SIZE=3][COLOR=#000000]cdc.com.br.[/COLOR][/SIZE][/FONT][/COLOR]
mail CNAME [COLOR=#333333][FONT=Arial][SIZE=3][COLOR=#000000]cdc.com.br[/COLOR][/SIZE][/FONT][/COLOR].
ftp CNAME [COLOR=#333333][FONT=Arial][SIZE=3][COLOR=#000000]cdc.com.br[/COLOR][/SIZE][/FONT][/COLOR].[/SIZE][/FONT][/COLOR]