linuxeopoder
(usa Ubuntu)
Enviado em 29/05/2014 - 14:54h
Ola Tuxistas, sou novo em configuração de DNS, e estou me aventurando, ja procurei no google e em varios sites como resolver esse problema na linha 27, o erro que me aparece quando reinicio o bind é esse:
May 29 14:58:55 mail named[8972]: available at
https://www.isc.org/support
May 29 14:58:55 mail named[8972]: ----------------------------------------------------
May 29 14:58:55 mail named[8972]: adjusted limit on open files from 4096 to 1048576
May 29 14:58:55 mail named[8972]: found 1 CPU, using 1 worker thread
May 29 14:58:55 mail named[8972]: using up to 4096 sockets
May 29 14:58:55 mail named[8972]: loading configuration from '/etc/bind/named.conf'
May 29 14:58:55 mail named[8972]: /etc/bind/named.conf:27: unknown option 'view'
May 29 14:58:55 mail named[8972]: loading configuration: failure
May 29 14:58:55 mail named[8972]: exiting (due to fatal error)
May 29 14:59:01 mail /USR/SBIN/CRON[8978]: (root) CMD (test -x /usr/share/queuegraph/count.sh && /usr/share/queuegraph/count.sh >/dev/null 2>&1)
rndc: connect failed: 127.0.0.1#953: connection refused
May 29 14:59:17 mail named[9014]: starting BIND 9.8.4-rpz2+rl005.12-P1 -u bind
May 29 14:59:17 mail named[9014]: built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-geoip=/usr' '--enable-ipv6' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2'
May 29 14:59:17 mail named[9014]: ----------------------------------------------------
May 29 14:59:17 mail named[9014]: BIND 9 is maintained by Internet Systems Consortium,
May 29 14:59:17 mail named[9014]: Inc. (ISC), a non-profit 501(c)(3) public-benefit
May 29 14:59:17 mail named[9014]: corporation. Support and training for BIND 9 are
May 29 14:59:17 mail named[9014]: available at
https://www.isc.org/support
May 29 14:59:17 mail named[9014]: ----------------------------------------------------
May 29 14:59:17 mail named[9014]: adjusted limit on open files from 4096 to 1048576
May 29 14:59:17 mail named[9014]: found 1 CPU, using 1 worker thread
May 29 14:59:17 mail named[9014]: using up to 4096 sockets
May 29 14:59:17 mail named[9014]: loading configuration from '/etc/bind/named.conf'
May 29 14:59:17 mail named[9014]: /etc/bind/named.conf:27: unknown option 'view'
May 29 14:59:17 mail named[9014]: loading configuration: failure
May 29 14:59:17 mail named[9014]: exiting (due to fatal error)
Segue abaixo minha configuração do named.conf
acl rede-externa { 189.59.200.202; } ;
acl dns-externo {8.8.8.8 ; 8.8.4.4 ; 208.67.222.222 ; } ;
acl rede-interna { 127.0.0.0/8 ; 10.200.1.0/24 ; 192.168.0.0/24 ; 189.59.200.202 ; } ;
acl dns-interno { 192.168.0.2 ; } ;
options { directory "/var/cache/bind" ;
listen-on port 53 { 192.168.0.0/24 ; 10.200.1.0/24 ; } ;
allow-transfer { 192.168.0.2 ; dns-interno ; rede-interna ; } ;
allow-query { rede-esterna ; dns-interno ; rede-interna ; } ;
allow-recursion { 192.168.0.2 ; dns-interno ; rede-interna ; } ;
allow-query-cache { 192.168.0.2 ; dns-interno ; rede-interna ; } ;
dump-file "/etc/bind/named_dump.db" ;
statistics-file "/etc/bind/named.status" ;
auth-nxdomain no ;
listen-on-v6 { any; } ; } ;
view "local" {
match-clients { rede-interna ; dns-interno ; } ;
allow-transfer { rede-interna ; dns-interno ; rede-externa ; } ;
recursion yes ;
zone "0.168.192.in.addr.arpa." { type master ; file "/etc/bind/lan/minhaempresa_lan.reverso" ; } ;
zone "minhaempresa.com.br" { type master ; file "/etc/bind/lan/minhaempresa_lan.direto" ; } ;
view "internet"
{
match-clients { any ; } ;
match-destinations { rede-externa ; any ; } ;
recursion no ;
allow-recursion { rede-externa ; any } ;
zone "." { type hint ; file "/etc/bind/db.root" ; } ;
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" ; } ;
zone "200.59.189.in-addr.arpa." { type master ; file "/etc/bind/wan/minhaempresa_wan.reverso" ; } ;
zone "minhaempresa.com.br" { type master ; file "/etc/bind/wan/minhaempresa_wan.direto" ; } ;
allow-query { rede-estena ; any ; } ;
allow-transfer { dns-interno ; } ; };
};