No consigo hacer funcionar bind (SOLUCIONADO)
J. Tura
jtura en esdebian.org
Mar Mar 2 21:35:57 GMT 2010
SOLUCIONADO
Era un error de sintaxis, edite el archivo /etc/bind/db.jtc.loc borre
las comillas dobles y volví a escribirlas y funcionó.
Gracias
J. Tura escribió:
> Perdon Mario, se me escapo al privado
>
> Mario Guerra escribió:
>> J. Tura escribió:
>>> Tengo un PC Pentium IV con 512 MB RAM que quiero usar como servidor.
>>> Le he instalado Xubuntu 9.10 Karmic Koala, ssh server, apache y bind.
>>> Quiero instalar tambien mysql y php 5
>>>
>>> El problema es que cuando configuro BIND ya no se reinicia:
>>> juan en xubuntu:/etc$ sudo /etc/init.d/bind9 restart
>>> * Stopping domain name service... bind9 [ OK ]
>>> * Starting domain name service... bind9 [fail]
>>> juan en xubuntu:/etc$ sudo /etc/init.d/bind9 start
>>> * Starting domain name service... bind9 [fail]
>>> juan en xubuntu:/etc$ sudo /etc/init.d/bind9 stop
>>> * Stopping domain name service... bind9
>>>
>>> rndc: connect failed: 127.0.0.1#953: connection refused
>>> [ OK ]
>> Posiblemente hay algún error de sintaxis en alguno de los archivos de
>> BIND. Para saber donde, examina la bitácora /var/log/syslog, quizá con
>> algo como:
>>
>> cat /var/log/syslog | grep bind
>>
>> Saludos
>>
>>
>
> La salida de la recarga fallida en /var/log/syslog es:
>
> Mar 2 21:21:33 xubuntu named[2410]: received control channel command
> 'stop -p'
> Mar 2 21:21:33 xubuntu named[2410]: shutting down: flushing changes
> Mar 2 21:21:33 xubuntu named[2410]: stopping command channel on
> 127.0.0.1#953
> Mar 2 21:21:33 xubuntu named[2410]: stopping command channel on ::1#953
> Mar 2 21:21:33 xubuntu named[2410]: no longer listening on ::#53
> Mar 2 21:21:33 xubuntu named[2410]: no longer listening on 127.0.0.1#53
> Mar 2 21:21:33 xubuntu named[2410]: no longer listening on
> 192.168.0.135#53
> Mar 2 21:21:33 xubuntu named[2410]: exiting
> Mar 2 21:21:34 xubuntu named[2615]: starting BIND 9.6.1-P2 -u bind
> Mar 2 21:21:34 xubuntu named[2615]: 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-dlz-postgres=no' '--with-dlz-mysql=no'
> '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes'
> '--with-dlz-stub=yes' '--with-geoip=/usr' '--enable-ipv6'
> 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2'
> 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS=' 'CXXFLAGS=-g -O2'
> 'FFLAGS=-g -O2'
> Mar 2 21:21:34 xubuntu named[2615]: adjusted limit on open files from
> 1024 to 1048576
> Mar 2 21:21:34 xubuntu named[2615]: found 1 CPU, using 1 worker thread
> Mar 2 21:21:34 xubuntu named[2615]: using up to 4096 sockets
> Mar 2 21:21:34 xubuntu named[2615]: loading configuration from
> '/etc/bind/named.conf'
> Mar 2 21:21:34 xubuntu named[2615]: /etc/bind/named.conf.local:11:
> expected quoted string near '“'
> Mar 2 21:21:34 xubuntu named[2615]: loading configuration: unexpected
> token
> Mar 2 21:21:34 xubuntu named[2615]: exiting (due to fatal error)
>
>
> Creo que la linea importante es:
>
> Mar 2 21:21:34 xubuntu named[2615]: /etc/bind/named.conf.local:11:
> expected quoted string near '“'
>
> La linea 11 de /etc/bind/named.conf.local es:
>
> file “/etc/bind/db.jtc.loc”;
>
> Para mi las comillas están bien puestas, creo, no detecto error de
> sintaxis.
> ¿Hay algo que se me escapa?
> ¿Alguien ve alguna cosa que no soy capaz de ver?
> Adjunto el fichero named.conf.local
>
>
--
Saludos
J. Tura
jtura en esdebian.org
Más información sobre la lista de distribución ubuntu-es