brunoL.
(usa Debian)
Enviado em 24/01/2009 - 11:28h
Amigos postei uma pergunta a algumas dias, sobre meu servidor dns q não está funcionando (não estou conseguindo startar o bind sempre da erro, obtive resposta do usuario franklincsilva e usei os scripts que ele me enviou mas ainda não funcionou segue abaixo todos os scripts agradeço se puderem me ajudarem detectando onde esta o erro obrigado!
ESTE É O HOSTNAME
bruno.studio.net
HOSTS
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#
# For loopbacking.
127.0.0.1 localhost
# This next entry is technically wrong, but good enough to get TCP/IP apps
# to quit complaining that they can't verify the hostname on a loopback-only
# Linux box.
192.168.254.1 bruno.studio.net bruno
# End of hosts.
NETWORKS
# networks This file describes a number of netname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
#
loopback 127.0.0.0
studio.net 192.168.254.0
# End of networks.
RESONL.CONF
search studio.net
nameserver 192.168.254.1
NAMED.CONF
options {
directory "/var/named";
version "PROTECT";
allow-transfer {192.168.254.2;};
listen-on (127.0.0.1; 192.168.254.1;};
allow-recursion {127.0.0.1; localhost; 192.168.254.0/24;};
/*
* 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;
};
//
// 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 "0.0.127.in-addr.arpa" IN {
type master;
file "caching-example/named.local";
allow-update { none; };
};
zone "254.168.192.in-addr.arpa" IN {
type master;
file caching-example/domain.rev";
allow-transfer { 192.168.254.2; };
};
zone "studio.net" IN {
type master;
file "caching-example/studio.host";
allow-transfer { 192.168.254.2; };
};
DOMAIN.REV (OU SEJA ZONA INVERSA)
$TTL 86400
$ORIGIN studio.net.
254.168.192.in-addr.arpa IN SOA bruno.studio.net. root.bruno.studio.net. (
2004101901 ; Serial de sincronização
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
NS dns.studio.net.
1 IN PTR ftp
1 IN PTR www
2 IN PTR dns2
1 IN PTR smtp
STUDIO.HOST (OU SEJA ZONA DIRETA)
$TTL 86400
@ IN SOA bruno.studio.net. root.bruno.studio.net. (
2004101901 ;Serial de sincronização
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
NS dns.studio.net.
IN MX 10 studio.net.
localhost IN A 127.0.0.1
slacks.com.br. IN A 192.168.254.2
dns IN A 192.168.254.2
dns2 IN A 192.168.254.1
www IN A 192.168.254.2
ftp IN A 192.168.254.2
mail IN CNAME studio.net.
pop IN CNAME studio.net.
router IN A 192.168.254.2
E POR ULTIMO O ERRO DO BIND POR FAVOR ANALIZEM ESTE ERRO
root@bruno:~# /etc/rc.d/rc.bind start
Starting BIND: /usr/sbin/named
WARNING: named did not start.
Attempting to start named again: /usr/sbin/named
FAILED: Sorry, a second attempt to start named has also failed.
There may be a configuration error that needs fixing. Good luck!
AGRADEÇO A AJUDA !