Erro no named.conf

1. Erro no named.conf

augusto cesar erthal
sulcorptech

(usa Debian)

Enviado em 03/12/2016 - 18:48h

Boa noite galera.
estou com um problema.
Editando o named.conf na hora de dar um service start named ele da erro nas linhas 11 e 17

//
// 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; 192.168.10.0/24};
#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; 192.168.10.0/24 };
recursion yes;

dnssec-enable yes;
dnssec-validation yes;

/* 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";
};

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

zone "sulcorp.net" in {
type master;
file "sulcorp.net.dns";
};
zone "10.168.192.in-addr.arpa" in {
type master;
file "192.168.10.0.dns";
};
#########################################
listen-on port 53 { 127.0.0.1; 192.168.10.0/24};
allow-query { localhost; 192.168.10.0/24 };
#########################################

ele da aquele erro de missing { before ;

Alguem ajuda!?!?!


  


2. Re: Erro no named.conf

Sandro Marcell
SMarcell

(usa Slackware)

Enviado em 05/12/2016 - 00:02h

Tá faltando ponto e vírgula nessas duas:

listen-on port 53 { 127.0.0.1; 192.168.10.0/24; };
...
allow-query { localhost; 192.168.10.0/24; };








Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts