Chega!!! hehehe Ajudem-me a configurar o Bind, ja cansei de mensagem de erro.

Iniciado por Paulo Corcino, 26 de Maio de 2008, 23:01

tópico anterior - próximo tópico

Paulo Corcino

VOu inserir os códigos dos arquivos
named.conf


// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
include "/etc/bind/named.conf.options";

include "/etc/bind/rndc.key";

controls {
        inet 127.0.0.1 port 953 allow { any; }  keys { "rndc-key"; };
};

// If you are just adding zones, please do that in /etc/bind/named.conf.local

//include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
zone "." {
        type hint;
        file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};

include "/etc/bind/named.conf.local";



named.conf.local


//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
//dominio Contreras
zone "contreras.local"{
        type master;
        allow-update {key "rndc-key";};
        file "/etc/bind/zones/contreras.local.db";
};

//zona Inversa
zone "1.168.192.in-addr.arpa"{
        type master;
        allow-update {key "rndc-key";};
        file "/etc/bind/zones/rev.1.168.192.in-addr.arpa";
};



named.conf.options


options {
        directory "/var/cache/bind";
        version none;

        allow-query { 192.168.1.0/24; 127.0.0.1; };
        allow-transfer { 192.168.1.0/24; 127.0.0.1; };

         forwarders {
                200.255.255.65;
                200.255.255.70;
         };

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
};



zones contreras.db

$TTL 86400;1 day
@ IN SOA mcatu01.contreras.local. admin.contreras.local. (
        2007031001
        28800
        3600
        604800
        38400
)
IN NS mcatu01.contreras.local.
IN A 192.168.1.1


reverse rev.1.168.192.in-addr.arpa.db


;$ORIGIN 1.168.192.in-addr.arpa.
$TTL 86400; 1 day
@ IN SOA mcatu01.contreras.local. admin.contreras.local. (
        2007031001;
        28800;
        3600
        1728000
        21600
)

        IN NS    mcatu01.contreras.local.
1       IN PTR   mcatu01.contreras.local.



resolv.conf


domain contreras.local
search contreras.local
nameserver 192.168.1.1
nameserver 200.255.255.65
nameserver 200.255.255.70



hosts

192.168.1.1     mcatu01.masterradius.local
127.0.0.1       localhost

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts





Meus problemas

1. erro no journal rollforward

May 26 22:07:13 mcatu01 named[6200]: zone 1.168.192.in-addr.arpa/IN: loaded serial 2007031001
May 26 22:07:13 mcatu01 named[6200]: zone 255.in-addr.arpa/IN: loaded serial 1
[b]May 26 22:07:13 mcatu01 named[6200]: zone contreras.local/IN: journal rollforward failed: no more[/b]
May 26 22:07:13 mcatu01 named[6200]: zone localhost/IN: loaded serial 2
May 26 22:07:13 mcatu01 named[6200]: running


2. Não encontra o host

root@mcatu01:/etc/bind# host mcatu01
Host mcatu01 not found: 3(NXDOMAIN)


3. Não encontra o servidor de dominio


root@mcatu01:/etc/bind# nslookup
> contreras.local
;; Got SERVFAIL reply from 192.168.1.1, trying next server
;; Got SERVFAIL reply from 192.168.1.1, trying next server
Server:         200.255.255.65
Address:        200.255.255.65#53

** server can't find contreras.local: NXDOMAIN




Obrigado antecipadamente por todas as ajudas.