BIND não inicia no Conectiva 10
Olá, estou tentando configurar o bind com o named.conf abaixo. Mas ele não inicia, configurei todos os arquivos. Este mesmo código funciona em um BSD, mas no COnectiva ele falha ao iniciar. Por favor, alguem pode me ajudar, ou se puderem enviar uma configuração que funcione bem no Conectiva 10 e que dê para configurar vários dominios.
Tenho apenas 1 IP, o outro IP para o DNS ficará em outra máquina já configurada.
Agradeço qualquer ajuda.
options {
directory "/var/named";
// In addition to the "forwarders" clause, you can force your name
// server to never initiate queries of its own, but always ask its
// forwarders only, by enabling the following line:
//
// forward only;
// If you've got a DNS server around at your upstream provider, enter
// its IP address here, and enable the line below. This will make you
// benefit from its cache, thus reduce overall DNS traffic in the Internet.
forwarders {
200.176.0.10;
200.176.0.12;
};
/*
* 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;
/*
* If running in a sandbox, you may have to specify a different
* location for the dumpfile.
*/
// dump-file "s/named_dump.db";
};
// Note: the following will be supported in a future release.
/*
host { any; } {
topology {
127.0.0.0/8;
};
};
*/
// Setting up secondaries is way easier and the rough picture for this
// is explained below.
//
// If you enable a local name server, don't forget to enter 127.0.0.1
// into your /etc/resolv.conf so this server will be queried first.
// Also, make sure to enable it in /etc/rc.conf.
zone "." {
type hint;
file "named.root";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "localhost.rev";
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {
type master;
file "localhost.rev";
};
// NB: Do not use the IP addresses below, they are faked, and only
// serve demonstration/documentation purposes!
//
// Example secondary config entries. It can be convenient to become
// a secondary at least for the zone where your own domain is in. Ask
// your network administrator for the IP address of the responsible
// primary.
//
// Never forget to include the reverse lookup (IN-ADDR.ARPA) zone!
// (This is the first bytes of the respective IP address, in reverse
// order, with ".IN-ADDR.ARPA" appended.)
//
// Before starting to setup a primary zone, better make sure you fully
// understand how DNS and BIND works, however. There are sometimes
// unobvious pitfalls. Setting up a secondary is comparably simpler.
//
// NB: Don't blindly enable the examples below. :-) Use actual names
// and addresses instead.
//
// NOTE!!! FreeBSD can run bind in a sandbox (see named_flags in rc.conf).
// The directory containing the secondary zones must be write accessible
// to bind. The following sequence is suggested:
//
// mkdir /etc/namedb/s
// chown bind:bind /etc/namedb/s
// chmod 750 /etc/namedb/s
zone "nomedoservidor"
{
type master;
file "nomedoservidor";
};
zone "nomedodominio.com.br"
{
type master;
file "nomedodominio.com.br";
};
//zone "0.168.192.IN-ADDR.ARPA"
//{
// type master ;
// file "local.rev" ;
//};
/*zone "0.168.192.IN-ADDR.ARPA"
{
type master;
file "slave.rev";
};*/
zone "163.207.200.IN-ADDR.ARPA"
{
type master;
file "internet.rev";
};
BIND não inicia no Conectiva 10
Muito obrigado Robson,
Realmente era a falta dos diretórios, mas o engraçado é que eles estavam faltando na pasta /usr/local/
Então dupliquei a pasta /var/named/ e coloquei tudo no /usr/local/ não entendi muito bem o por que, mas funcionou.
[]s
BIND não inicia no Conectiva 10
ou eu estava passando pelo mesmo no meu tópico da uma olhada nele que os caras me ajudaram e agora esta startando no meu só tá faltando pouco pra acabar de funcionar.
também to usando o conectiva 10
BIND não inicia no Conectiva 10
Estava tudo indo bem e funcionando, mas agora o bind não inicia mais e ao testar o teste reva no item
13-May-2005 17:13:10.194 client 200.207.163.46#1093: received notify for zone '163.207.200.IN-ADDR.ARPA'
e qdo digito ctrl+c aparece
13-May-2005 17:13:18.002 shutting down
13-May-2005 17:13:18.002 stopping command channel on 127.0.0.1#953
13-May-2005 17:13:18.003 no longer listening on 127.0.0.1#53
13-May-2005 17:13:18.003 no longer listening on 192.168.0.1#53
13-May-2005 17:13:18.003 no longer listening on 200.207.163.46#53
13-May-2005 17:13:18.005 exiting
Alguem sabe oq pode ter acontecido? estava tudo funcionando e foi só reiniciar que parou de funcionar.
BIND não inicia no Conectiva 10
Pessoal,
Resolvido, parece ser uma falha ou do bind ou do conectiva (estou me arrependendo de não ter insistido no slackware) o problema estava no arquivo de boot do named.
Para iniciar eu tive de digitar antes
/usr/local/sbin/named
e depois tive de alterar todos os paths, ele só estava reconhecendo o /usr/sbin/ e o /etc/named/
e aí sim dar o ./named start
os arquivos estavam em /usr/local/sbin/ e /etc/named/etc/ então modifiquei os paths e parece que agora está normal. Deve ser algum problema com o Webmin do COnectiva 10. Foi feito para facilitar mas dá muito problema. VAmos ver se agora com a compra pela Mandrake o sistema melhora um pouco.
[]s e obrigado a todos