cara to com problemas no bind seguinte: a configuração do bind na hora do iniciar, restartar não tem problema. o problema todo é o seguinte ele não ta resolvendo, vou postar as partes dos arquivos que alterei.
named.conf:
zone "intranet.cgm" IN {
type master;
file "intranet.cgm.domain";
allow-update { none; };
};
zone "agenda.cgm" IN {
type master;
file "agenda.cgm.domain";
allow-update { none; };
agenda.cgm.domain:
$TTL 86400
; Authoritative data for meudominio.com.br
;
@ IN SOA localhost. root.agenda.cgm. (
2004102897 ; Serial (yymmddxx)
10800 ; Refresh 3 hours
3600 ; Retry 1 hour
36000 ; Expire 10 hours
86400 ) ; Minimum 24 hours
IN NS ns1.intranet.cgm.
IN NS ns2.intranet.cgm.
;
;Recebimento de mensagens de mail
;
#meudominio.com.br. IN MX 0 mx
#meudominio.com.br. IN MX 10 mx
;
; Hosts
;
localhost IN A 127.0.0.1
IN HINFO INTEL/110 LINUX
www IN A 192.168.10.10 ; o ip da sua maquina
ns1 IN A 192.168.10.10 ; o ip da sua maquina
ns2 IN A 192.168.10.10 ; o ip da sua maquina
maquina-1 IN A 192.168.10.109 ; ip qualquer da rede
maquina-2 IN A 192.168.10.109 ; ip qualquer da rede
intranet.cgm:
$TTL 86400
; Authoritative data for meudominio.com.br
;
@ IN SOA localhost. root.intranet.cgm. (
2004102897 ; Serial (yymmddxx)
10800 ; Refresh 3 hours
3600 ; Retry 1 hour
36000 ; Expire 10 hours
86400 ) ; Minimum 24 hours
IN NS ns1.intranet.cgm.
IN NS ns2.intranet.cgm.
;
;Recebimento de mensagens de mail
;
#meudominio.com.br. IN MX 0 mx
#meudominio.com.br. IN MX 10 mx
;
; Hosts
;
localhost IN A 127.0.0.1
IN HINFO INTEL/110 LINUX
www IN A 192.168.10.10 ; o ip da sua maquina
ns1 IN A 192.168.10.10 ; o ip da sua maquina
ns2 IN A 192.168.10.10 ; o ip da sua maquina
maquina-1 IN A 192.168.10.109 ; ip qualquer da rede
maquina-2 IN A 192.168.10.109 ; ip qualquer da rede
e o resolv.conf
search intranet.cgm
nameserver 192.168.10.10
quando executo o ping acontece
[root@pdc named]# ping
www.intranet.cgm
ping: unknown host
www.intranet.cgm
[root@pdc named]# ping intranet.cgm
PING intranet.cgm (127.0.0.1) 56(84) bytes of data.
64 bytes from pdc.cgm (127.0.0.1): icmp_seq=1 ttl=64 time=0.075 ms
64 bytes from pdc.cgm (127.0.0.1): icmp_seq=2 ttl=64 time=0.048 ms
64 bytes from pdc.cgm (127.0.0.1): icmp_seq=3 ttl=64 time=0.050 ms
vou mandar tb o httpd.conf
NameVirtualHost 192.168.10.10:80
<VirtualHost *>
ServerName localhost
DocumentRoot /var/www/html
DirectoryIndex index.html
</VirtualHost>
<VirtualHost 192.168.10.10:80>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/html/intranet
ServerName intranet.cgm
# Serveralias intranet
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
DirectoryIndex index.html index.htm index.shtml index.php
</VirtualHost>
<VirtualHost 192.168.10.10:80>
# ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /var/www/html/agenda
ServerName agenda.cgm
# Serveralias agenda
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
DirectoryIndex index.html index.htm index.shtml index.php
</VirtualHost>