Li todos os artigos que estava em: https://under-linux.org/modules.php?name=Sections&op=listarticles&secid=1&PHPSESSID=ed889ebbb34dc8479569d416036a3b6b
e achei mais fácil configurar o bind/dns pelo: https://under-linux.org/modules.php?name=Sections&op=viewarticle&artid=222.
Segui todos os passos mas não sei se o bind/dns esta funcionando. Quando digito "service named start" e depois "service named status" aparece uma mensagem de erro. Vejam abaixo:
"
[root@rh9-test root]# service named start
[root@rh9-test root]# service named status
rndc: connect failed: connection refused
[root@rh9-test root]#
"
Abaixo estão meus arquivos de configuração do bind/dns. Espero que possam me ajudar.
O que esta em "/var/named/primary" é o lasertest.conf
"
zone "lasertest.laser.br" {
type master;
file "zone/db.lasertest";
};
zone "130.172.168.192.in-addr.arpa" {
type master;
file "zone/rev.lasertest";
};
"
Os que estão em "/var/named/zone" são: db.lasertest e e rev.lasertest respectivamente
"
$TTL 86400
@ IN SOA lasertest.laser.br. postmaster.lasertest.laser.br. (
2003090200 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS lasertest.laser.br.
@ IN NS ns.lasertest.laser.br.
lasertest.laser.br. IN A 192.168.172.130
ns.lasertest.laser.br. IN A 192.168.172.130
ftp IN A 192.168.172.130
www IN CNAME lasertest.laser.br.
mail IN A 192.168.172.130
@ IN MX 5 mail.lasertest.laser.br.
pop IN CNAME mail.lasertest.laser.br.
smtp IN CNAME mail.lasertest.laser.br.
"
"
$TTL 86400
@ IN SOA lasertest.laser.br. postmaster.lasertest.laser.br. (
2003092002 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
@ IN NS lasertest.laser.br.
192.168.172.130.in-addr.arpa. IN PTR lasertest.laser.br.
"
Agora o named.conf
"
include "/var/named/primary/lasertest.conf"
"