bind no centos [RESOLVIDO]

1. bind no centos [RESOLVIDO]

Fábio Holliday Santos Sousa
fabioholliday

(usa Debian)

Enviado em 24/10/2012 - 19:45h

Galera como havia dito, minha distro é centos, e venho há um bom tempo tentando aprender a configurar o BIND no centos e nada... fui tentar debian squeenze, e não é que rodou tudo tranquilo? muito simples no debian, pois bem voltei no centos para tentar e continuo não conseguindo, agora tá dando tal erro na hora de startar o named:


service named start
Iniciando o named:
Error in named configuration:
/etc/named.conf:1: unknown option 'cl'
/etc/named.conf:52: '}' expected near end of file
[FALHOU]



  


2. Re: bind no centos [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 24/10/2012 - 19:53h

Tá reclamando a linha 1 e 52 do aquivo named.conf. Posta ele e os outros aquivos configurados.

Linha 52 parece que faltou fechar '}'.


3. meu named.conf

Fábio Holliday Santos Sousa
fabioholliday

(usa Debian)

Enviado em 24/10/2012 - 19:57h

//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;

};
};

zone "." IN {
type hint;
file "named.ca";
};

zone "exemplo.com.br"{
type master;
file "exemplo.com.br.db";
};
zone "0.168.192.in-addr.arpa"{ (
type master;
file "0.168.192.db";
};





include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";




4. Re: bind no centos [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 24/10/2012 - 20:01h

zone "0.168.192.in-addr.arpa"{
type master;
file "0.168.192.db";
};


Tinha um parêntese aberto!


5. Re: bind no centos [RESOLVIDO]

Fábio Holliday Santos Sousa
fabioholliday

(usa Debian)

Enviado em 24/10/2012 - 20:07h

amarildosertorio escreveu:

zone "0.168.192.in-addr.arpa"{
type master;
file "0.168.192.db";
};


Tinha um parêntese aberto!



eu retirei o parêntese aberto, e testei.. deu o mesmo erro.




6. Re: bind no centos [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 24/10/2012 - 20:15h

Veja se há mais detalhes no log.

# tail -100 /var/log/messages


7. resultador do log

Fábio Holliday Santos Sousa
fabioholliday

(usa Debian)

Enviado em 24/10/2012 - 20:18h

amarildosertorio escreveu:

Veja se há mais detalhes no log.

# tail -100 /var/log/messages



Aqui tá o resultado do log:

[root@fabio ~]# tail -100 /var/log/messages
Oct 24 12:19:20 fabio avahi-daemon[1144]: Joining mDNS multicast group on interf ace eth0.IPv4 with address 192.168.0.173.
Oct 24 12:19:20 fabio avahi-daemon[1144]: New relevant interface eth0.IPv4 for m DNS.
Oct 24 12:19:20 fabio avahi-daemon[1144]: Registering new address record for 192 .168.0.173 on eth0.IPv4.
Oct 24 12:19:21 fabio NetworkManager[1132]: <info> (eth0): device state change: 7 -> 8 (reason 0)
Oct 24 12:19:21 fabio NetworkManager[1132]: <info> Policy set 'Auto eth0' (eth0) as default for IPv4 routing and DNS.
Oct 24 12:19:21 fabio NetworkManager[1132]: <info> Activation (eth0) successful, device activated.
Oct 24 12:19:21 fabio NetworkManager[1132]: <info> Activation (eth0) Stage 5 of 5 (IP Configure Commit) complete.
Oct 24 12:19:21 fabio acpid: starting up
Oct 24 12:19:21 fabio acpid: 1 rule loaded
Oct 24 12:19:21 fabio acpid: waiting for events: event logging is off
Oct 24 12:19:23 fabio acpid: client connected from 1335[68:68]
Oct 24 12:19:23 fabio acpid: 1 client rule loaded
Oct 24 12:19:24 fabio pcscd: pcscdaemon.c:506:main() pcsc-lite 1.5.2 daemon read y.
Oct 24 12:19:25 fabio automount[1373]: lookup_read_master: lookup(nisplus): coul dn't locate nis+ table auto.master
Oct 24 12:19:26 fabio xinetd[1406]: xinetd Version 2.3.14 started with libwrap l oadavg labeled-networking options compiled in.
Oct 24 12:19:26 fabio xinetd[1406]: Started working: 0 available services
Oct 24 12:19:29 fabio nmbd[1499]: [2012/10/24 12:19:29.349018, 0] param/loadpar m.c:7619(lp_do_parameter)
Oct 24 12:19:29 fabio nmbd[1499]: Ignoring unknown parameter "invalid user"
Oct 24 12:19:29 fabio nmbd[1499]: [2012/10/24 12:19:29.386776, 0] param/loadpar m.c:7619(lp_do_parameter)
Oct 24 12:19:29 fabio nmbd[1499]: Ignoring unknown parameter "invalid user"
Oct 24 12:19:29 fabio smbd[1507]: [2012/10/24 12:19:29.544237, 0] param/loadpar m.c:7619(lp_do_parameter)
Oct 24 12:19:29 fabio smbd[1507]: Ignoring unknown parameter "invalid user"
Oct 24 12:19:29 fabio smbd[1507]: [2012/10/24 12:19:29.549300, 0] param/loadpar m.c:7619(lp_do_parameter)
Oct 24 12:19:29 fabio smbd[1507]: Ignoring unknown parameter "invalid user"
Oct 24 12:19:29 fabio smbd[1509]: [2012/10/24 12:19:29.766247, 0] smbd/server.c :501(smbd_open_one_socket)
Oct 24 12:19:29 fabio smbd[1509]: smbd_open_once_socket: open_socket_in: Ender eço já em uso
Oct 24 12:19:29 fabio smbd[1509]: [2012/10/24 12:19:29.773476, 0] smbd/server.c :501(smbd_open_one_socket)
Oct 24 12:19:29 fabio smbd[1509]: smbd_open_once_socket: open_socket_in: Ender eço já em uso
Oct 24 12:19:54 fabio nmbd[1500]: [2012/10/24 12:19:54.487389, 0] nmbd/nmbd_bec ome_lmb.c:395(become_local_master_stage2)
Oct 24 12:19:54 fabio nmbd[1500]: *****
Oct 24 12:19:54 fabio nmbd[1500]:
Oct 24 12:19:54 fabio nmbd[1500]: Samba name server PDC is now a local master browser for workgroup WORKGROUP on subnet 192.168.0.173
Oct 24 12:19:54 fabio nmbd[1500]:
Oct 24 12:19:54 fabio nmbd[1500]: *****
Oct 24 13:13:14 fabio yum[1695]: Erased: bind-utils
Oct 24 13:13:14 fabio yum[1695]: Erased: bind-libs
Oct 24 13:27:00 fabio yum[1764]: Installed: 32:bind-libs-9.8.2-0.10.rc1.el6_3.5. i686
Oct 24 13:27:07 fabio yum[1764]: Installed: 32:bind-9.8.2-0.10.rc1.el6_3.5.i686
Oct 24 13:27:08 fabio yum[1764]: Installed: postgresql-libs-8.4.13-1.el6_3.i686
Oct 24 13:27:09 fabio yum[1764]: Installed: 32:bind-chroot-9.8.2-0.10.rc1.el6_3. 5.i686
Oct 24 13:27:12 fabio yum[1764]: Installed: 32:bind-devel-9.8.2-0.10.rc1.el6_3.5 .i686
Oct 24 13:27:13 fabio yum[1764]: Installed: 32:bind-sdb-9.8.2-0.10.rc1.el6_3.5.i 686
Oct 24 13:27:14 fabio yum[1764]: Installed: bind-dyndb-ldap-1.1.0-0.9.b1.el6_3.1 .i686
Oct 24 13:27:14 fabio yum[1764]: Installed: 32:bind-utils-9.8.2-0.10.rc1.el6_3.5 .i686
Oct 24 13:52:03 fabio named: /etc/named.conf:11: syntax error near '}'
Oct 24 13:52:28 fabio named: zone localhost.localdomain/IN: loading from master file named.localhost failed: file not found
Oct 24 13:52:28 fabio named: zone localhost.localdomain/IN: not loaded due to er rors.
Oct 24 13:52:28 fabio named: _default/localhost.localdomain/IN: file not found
Oct 24 13:52:28 fabio named: zone localhost/IN: loading from master file named.l ocalhost failed: file not found
Oct 24 13:52:28 fabio named: zone localhost/IN: not loaded due to errors.
Oct 24 13:52:28 fabio named: _default/localhost/IN: file not found
Oct 24 13:52:28 fabio named: zone 1.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.arpa/IN: loading from master file named.loopback failed: f ile not found
Oct 24 13:52:28 fabio named: zone 1.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.arpa/IN: not loaded due to errors.
Oct 24 13:52:28 fabio named: _default/1.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.arpa/IN: file not found
Oct 24 13:52:28 fabio named: zone 1.0.0.127.in-addr.arpa/IN: loading from master file named.loopback failed: file not found
Oct 24 13:52:28 fabio named: zone 1.0.0.127.in-addr.arpa/IN: not loaded due to e rrors.
Oct 24 13:52:28 fabio named: _default/1.0.0.127.in-addr.arpa/IN: file not found
Oct 24 13:52:28 fabio named: zone 0.in-addr.arpa/IN: loading from master file na med.empty failed: file not found
Oct 24 13:52:28 fabio named: zone 0.in-addr.arpa/IN: not loaded due to errors.
Oct 24 13:52:28 fabio named: _default/0.in-addr.arpa/IN: file not found
Oct 24 14:01:01 fabio yum[2832]: Erased: bind-dyndb-ldap
Oct 24 14:01:01 fabio yum[2832]: Erased: bind-sdb
Oct 24 14:01:02 fabio yum[2832]: Erased: bind-utils
Oct 24 14:01:03 fabio yum[2832]: Erased: bind-chroot
Oct 24 14:01:03 fabio yum[2832]: Erased: bind
Oct 24 14:01:04 fabio yum[2832]: Erased: bind-devel
Oct 24 14:01:04 fabio yum[2832]: Erased: bind-libs
Oct 24 15:46:31 fabio yum[2931]: Installed: 32:bind-libs-9.8.2-0.10.rc1.el6_3.5. i686
Oct 24 15:46:37 fabio yum[2931]: Installed: 32:bind-9.8.2-0.10.rc1.el6_3.5.i686
Oct 24 15:46:38 fabio yum[2931]: Installed: 32:bind-chroot-9.8.2-0.10.rc1.el6_3. 5.i686
Oct 24 15:46:40 fabio yum[2931]: Installed: 32:bind-devel-9.8.2-0.10.rc1.el6_3.5 .i686
Oct 24 15:46:40 fabio yum[2931]: Installed: bind-dyndb-ldap-1.1.0-0.9.b1.el6_3.1 .i686
Oct 24 15:46:41 fabio yum[2931]: Installed: 32:bind-utils-9.8.2-0.10.rc1.el6_3.5 .i686
Oct 24 15:46:42 fabio yum[2931]: Installed: 32:bind-sdb-9.8.2-0.10.rc1.el6_3.5.i 686
Oct 24 16:57:20 fabio yum[3346]: Erased: bind-dyndb-ldap
Oct 24 16:57:20 fabio yum[3346]: Erased: bind-sdb
Oct 24 16:57:21 fabio yum[3346]: Erased: bind-utils
Oct 24 16:57:21 fabio yum[3346]: Erased: bind-chroot
Oct 24 16:57:22 fabio yum[3346]: Erased: bind
Oct 24 16:57:23 fabio yum[3346]: Erased: bind-devel
Oct 24 16:57:23 fabio yum[3346]: Erased: bind-libs
Oct 24 17:00:58 fabio yum[3432]: Installed: 32:bind-libs-9.8.2-0.10.rc1.el6_3.5. i686
Oct 24 17:01:05 fabio yum[3432]: Installed: 32:bind-9.8.2-0.10.rc1.el6_3.5.i686
Oct 24 17:01:06 fabio yum[3432]: Installed: 32:bind-chroot-9.8.2-0.10.rc1.el6_3. 5.i686
Oct 24 18:01:19 fabio named: /etc/named.conf:1: unknown option 'cl'
Oct 24 18:01:19 fabio named: /etc/named.conf:52: '}' expected near end of file
Oct 24 18:02:12 fabio named: /etc/named.conf:1: unknown option 'cl'
Oct 24 18:02:12 fabio named: /etc/named.conf:52: '}' expected near end of file
Oct 24 19:18:39 fabio named: /etc/named.conf:1: unknown option 'cl'
Oct 24 19:18:39 fabio named: /etc/named.conf:52: '}' expected near end of file
Oct 24 19:19:41 fabio named: /etc/named.conf:1: unknown option 'cl'
Oct 24 19:19:41 fabio named: /etc/named.conf:52: '}' expected near end of file
Oct 24 19:38:55 fabio named: /etc/named.conf:1: unknown option 'cl'
Oct 24 19:38:55 fabio named: /etc/named.conf:52: '}' expected near end of file
Oct 24 20:04:54 fabio named: /etc/named.conf:1: unknown option 'cl'
Oct 24 20:04:54 fabio named: /etc/named.conf:52: '}' expected near end of file
Oct 24 20:06:15 fabio named: /etc/named.conf:1: unknown option 'cl'
Oct 24 20:06:15 fabio named: /etc/named.conf:52: '}' expected near end of file
Oct 24 20:08:16 fabio named: /etc/named.conf:1: unknown option 'cl'
Oct 24 20:08:16 fabio named: /etc/named.conf:52: '}' expected near end of file



8. Re: bind no centos [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 24/10/2012 - 20:25h

Tenho um CenOS aqui. Só um minuto! Vou testar!


9. Re: bind no centos [RESOLVIDO]

Fábio Holliday Santos Sousa
fabioholliday

(usa Debian)

Enviado em 24/10/2012 - 20:27h

amarildosertorio escreveu:

Tenho um CenOS aqui. Só um minuto! Vou testar!



vou ficar aqui no aguardo, obrigado.


10. Re: bind no centos [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 24/10/2012 - 20:48h

Você só configurou o reverso até agora né?

Fiz o teste configurando apenas com esse seu parâmetro e fazendo uma copia do named.loopback para 0.168.192.db. Configure o restante!

# cd /var/named/
# cp -a named.loopback 0.168.192.db


$TTL 1D
@ IN SOA @ 0.168.192.in-addr.arpa. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS @
A 127.0.0.1
AAAA ::1
PTR localhost.


# vi /etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "named.ca";
};

zone "0.168.192.in-addr.arpa"{
type master;
file "0.168.192.db";
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";



11. Re: bind no centos [RESOLVIDO]

Fábio Holliday Santos Sousa
fabioholliday

(usa Debian)

Enviado em 24/10/2012 - 20:56h

amarildosertorio escreveu:

Você só configurou o reverso até agora né?

Fiz o teste configurando apenas com esse seu parâmetro e fazendo uma copia do named.loopback para 0.168.192.db. Configure o restante!

# cd /var/named/
# cp -a named.loopback 0.168.192.db


$TTL 1D
@ IN SOA @ 0.168.192.in-addr.arpa. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
NS @
A 127.0.0.1
AAAA ::1
PTR localhost.


# vi /etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;

dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;

/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";

managed-keys-directory "/var/named/dynamic";
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "named.ca";
};

zone "0.168.192.in-addr.arpa"{
type master;
file "0.168.192.db";
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";



vc teria me dizer o que seria o restante? fiz no debian e foi simples, no centos é essa dureza toda.. vc pode me ajudar?



12. Re: bind no centos [RESOLVIDO]


01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts