dns slackware

1. dns slackware

Bruno Lino dos Santos
brunoL.

(usa Debian)

Enviado em 19/01/2009 - 11:47h

Amigos não estou conseguindo startar o bind, sempre da erro, gostaria que vcs analizasem o meu script dns e o erro do bind.

este é o 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 "204.168.192.in-addr.arpa" IN {
type master;
file caching-example/inversa";
allow-transfer { 192.168.254.2 };
};

zone "studio.net" IN {
type master;
file "caching-example/direta";
allow-transfer { 192.168.254.2; };

};


ESTA A ZONA INVERSA

$TTL 86400
$ORIGIN studio.net.
254.168.192.in-addr.arpa IN SOA bruno.studio.net root.bruno.studio.net.(
2007061701 ; Serial de sicronização
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
NS bruno.studio.net.

1 IN PTR localhost



E ESTA A DIRETA

$TTL 86400

@ IN SOA bruno.studio.net. root.bruno.studio.net. (
2007061701 ; Serial de sincronização
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

NS bruno.studio.net.

localhost IN A 127.0.0.1
studio.net. IN A 192.168.254.1
dns IN A 192.168.254.1
www IN CNAME studio.net
bruno IN A 192.168.254.1
1 IN PTR localhost


E AQUI O ERRO DO BIND


root@bruno:~# cd /etc/rc.d
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!
root@bruno:/etc/rc.d#


AGRADEÇO SE PUDEREM ME AJUDAR


  


2. named.conf

Franklin Candido da Silva
franklincsilva

(usa Ubuntu)

Enviado em 19/01/2009 - 14:48h

Antes de fazer qualquer alteração pare o serviço
#/etc/rc.d/rc.bind stop

vi alguns erros na digitação, veja você mesmo, dai use o meu arquivo.

#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 "204.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; };

};

Estava alfando alguns pontos e virgulas.

Esse aqui é o meu arquivo domain.rev que você escreveu inverso.

#domain.rev

$TTL 86400
$ORIGIN studio.net.
254.168.192.in-addr.arpa IN SOA servidor.studio.net. root.servidor.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

Esse aqui é o arquivo studio.host

#studio.host

$TTL 86400

@ IN SOA servidor.studio.net. root.servidor.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

Agora restart o serviço.


/etc/rc.d/rc.bind start


3. Re: dns slackware

Bruno Lino dos Santos
brunoL.

(usa Debian)

Enviado em 20/01/2009 - 23:10h

franklincsilva
muito obrigado pela resposta vou tentar com o seu script e depois respondo se funcionol.
Obrigado !






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts