Author Topic: how to fix bind (dns ) default ?  (Read 3361 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
how to fix bind (dns ) default ?
« on: December 18, 2015, 07:52:13 PM »
hello
i have a problem with my new webserver ....
i have centos 6.7 and i have a problem whith my dns settings...
Code: [Select]
Stopping named: [  OK  ]
Starting named:
Error in named configuration:
dns_master_load: named.localhost:10: isc_lex_gettoken() failed: unbalanced parentheses
dns_master_load: named.localhost:10: unbalanced parentheses
dns_master_load: named.localhost:14: unexpected end of line
dns_master_load: named.localhost:13: unexpected end of input
zone localhost.localdomain/IN: loading from master file named.localhost failed: unbalanced parentheses
zone localhost.localdomain/IN: not loaded due to errors.
_default/localhost.localdomain/IN: unbalanced parentheses
dns_master_load: named.localhost:10: isc_lex_gettoken() failed: unbalanced parentheses
dns_master_load: named.localhost:10: unbalanced parentheses
dns_master_load: named.localhost:14: unexpected end of line
dns_master_load: named.localhost:13: unexpected end of input
zone localhost/IN: loading from master file named.localhost failed: unbalanced parentheses
zone localhost/IN: not loaded due to errors.
_default/localhost/IN: unbalanced parentheses
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: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
/var/named/ns1.dabtehnic.ro.db:5: no current owner name
dns_master_load: /var/named/ns1.dabtehnic.ro.db:13: isc_lex_gettoken() failed: unbalanced parentheses
dns_master_load: /var/named/ns1.dabtehnic.ro.db:13: unbalanced parentheses
zone ns1.dabtehnic.ro/IN: loading from master file /var/named/ns1.dabtehnic.ro.db failed: no owner
zone ns1.dabtehnic.ro/IN: not loaded due to errors.
_default/ns1.dabtehnic.ro/IN: no owner
/var/named/ns2.dabtehnic.ro.db:5: no current owner name
dns_master_load: /var/named/ns2.dabtehnic.ro.db:13: isc_lex_gettoken() failed: unbalanced parentheses
dns_master_load: /var/named/ns2.dabtehnic.ro.db:13: unbalanced parentheses
zone ns2.dabtehnic.ro/IN: loading from master file /var/named/ns2.dabtehnic.ro.db failed: no owner
zone ns2.dabtehnic.ro/IN: not loaded due to errors.
_default/ns2.dabtehnic.ro/IN: no owner
zone dabtehnic.ro/IN: loaded serial 2015121820
[FAILED]
Can anyone tell me how can I solve this... wrong?
sorry 4 my english !!!!
« Last Edit: December 18, 2015, 07:53:53 PM by LiXuS »
/var/www/home.ro

Offline
*****
Re: how to fix bind (dns ) default ?
« Reply #1 on: January 12, 2016, 08:57:12 AM »
Hello.

You should edit the lines in files which you see in the error.

Offline
*
Re: how to fix bind (dns ) default ?
« Reply #2 on: December 15, 2016, 02:27:41 PM »
Code: [Select]
; Panel %version%
; Zone file for nsx.domain.com
$TTL 14400
nsx.domain.com.      86400      IN      SOA      nsx.domain.com.      root.domain.com.      (
                                2016121514 ;serial, todays date+todays
                                86400 ;refresh, seconds
                                7200 ;retry, seconds
                                3600000 ;expire, seconds
                                 ;
      )


)
nsx.domain.com.      86400      IN      NS      nsx.domain.com.
nsx.domain.com.      86400      IN      NS      nsy.domain.com.
nsx.domain.com.      14400      IN      A      10.10.10.10

Hello,
what is wrong with the server name?
I have a problem with DNS file .db nsy.domain.tld.db and nsx.domain.tld.db
... I changed something and I destroyed.
bind not working.
Code: [Select]
[root@server named]# service named restart
Stopping named:                                            [  OK  ]
Starting named:
Error in named configuration:
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
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: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
dns_rdata_fromtext: /var/named/nsx.domain.com.db:8: near eol: unexpected end of input
dns_master_load: /var/named/nsx.domain.com.db:13: isc_lex_gettoken() failed: unbalanced parentheses
dns_master_load: /var/named/nsx.domain.com.db:13: unbalanced parentheses
zone nsx.domain.com/IN: loading from master file /var/named/nsx.domain.com.db failed: unexpected end of input
zone nsx.domain.com/IN: not loaded due to errors.
_default/nsx.domain.com/IN: unexpected end of input
dns_master_load: /var/named/nsy.domain.com.db:3: extra input text
/var/named/nsy.domain.com.db:4: no current owner name
dns_master_load: /var/named/nsy.domain.com.db:12: isc_lex_gettoken() failed: unbalanced parentheses
dns_master_load: /var/named/nsy.domain.com.db:12: unbalanced parentheses
zone nsy.domain.com/IN: loading from master file /var/named/nsy.domain.com.db failed: extra input text
zone nsy.domain.com/IN: not loaded due to errors.
_default/nsy.domain.com/IN: extra input text
zone domain.com/IN: loaded serial 2016121513
zone domain.com4/IN: loaded serial 2013071600
zone domain.com3/IN: loaded serial 2013071600
zone domain.com1/IN: loaded serial 2013071600
zone domain.com2/IN: loaded serial 2013071600
anyone can post to me ns1.domain.ltd.db standard file?
Thanks in advance !
/var/www/home.ro