MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: Almas on 2014-12-17, 23:49:14

Title: Kloxo-MR 7 Bind DNS BUGS!!
Post by: Almas on 2014-12-17, 23:49:14

Kloxo-MR 7 last version. Bind DNS can't start because of /etc/rndc.key content. I changed key name in this file rndckey to rndc-key then it works.

My system: OpenVZ VPS with CentOS 5.11

Also named.master.conf file is empty. Then Bind can't load zone. I ran /script/fixdns but it can't fix too.

'sh /script/fix-all; sh /script/restart-all' also can't fix.

There are zone files in nsd/conf/master folder. But bind doesn't load zone files. How can I fix this. It's critical.
Title: Re: Kloxo-MR 7 Bind DNS bugs
Post by: MRatWork on 2014-12-17, 23:53:24
Switch to nsd and switch back to bind. Better using nsd instead bind because using memory usage.

Bind, nsd and yadifa using the same domain zones file.
Title: Re: Kloxo-MR 7 Bind DNS bugs
Post by: Almas on 2014-12-18, 00:42:15
Thank you for your reply. I tried nsd also. But can't have luck. I upgraded from Kloxo 6.1.19 to Kloxo-MR 7
and can't load DNS.

I tried it already. But it can't helped. I switched nsd and djbdns back to bind.
I checked files in /opt/configs/nsd/conf/master and there are files which named my domains and extension .conf.

But Bind can't load zones. There are

/opt/configs/bind/conf/defaults/named.master.conf
and
/opt/configs/nsd/conf/defaults/nsd.master.conf

are empty. Is this can cause? How can I fix this?

(now I trying /script/cleanup one more time)
Title: Re: Kloxo-MR 7 Bind DNS bugs
Post by: MRatWork on 2014-12-18, 00:48:59
Did you already add domains?. Try add one (no problem with 'dummy' domain like 'iamhereandtry.com').
Title: Re: Kloxo-MR 7 Bind DNS bugs
Post by: Almas on 2014-12-18, 01:19:39
I had many domains before. I added new domain. That is now in named.master.conf
But old domains not. :( Can you help me?
Title: Re: Kloxo-MR 7 Bind DNS bugs
Post by: MRatWork on 2014-12-18, 01:25:12
Did you update from Kloxo or Kloxo-MR 6.5?.

If your domains listed in 'domain list', running 'sh /script/fixdns; sh /script/restart-dns -y'.
Title: Re: Kloxo-MR 7 Bind DNS bugs
Post by: Almas on 2014-12-18, 01:31:46
I found cause.
My domains had field syncserver 2 or more in database. I changed it to localhost. Then it go on.
If syncserver multi then /script/fixdns failing.

It fixed:
UPDATE `dns` SET `syncserver`='localhost' WHERE syncserver='localhost,ns2.nameserver.com'
Title: Re: Kloxo-MR 7 Bind DNS bugs
Post by: MRatWork on 2014-12-18, 01:42:12
Value of syncserver always 'localhost' or 'ns2.nameserver.com'. So, value of 'localhost,ns2.nameserver.com' is wrong.
Title: Re: Kloxo-MR 7 Bind DNS bugs
Post by: Almas on 2014-12-18, 01:55:57
I upgraded from Kloxo 6.1.19.
Kloxo has this option. I have no idea about it. But remember that I chosen 2 name servers for one domain before. Maybe it was my fault. But official Kloxo worked ok with this configuration.

By the way thank you for helped  ;D You are life saver :)
Title: Bad owner name (check-names) Error (BIND) Problem
Post by: Almas on 2014-12-18, 05:09:41
When attempting to load a zone file this error can occur and cause bind start fails:

pop.company.net.zone:313: blah.pop.company.net: bad owner name (check-names)
zone pop.company.net/IN: loading from master file pop.company.net failed: bad owner name (check-names)
zone pop.company.net/IN: not loaded due to errors.

Solution:
To named.options.conf add options below:

        check-names master ignore;
        check-names slave ignore;
        check-names response ignore;

Title: Re: Kloxo-MR 7 Bind DNS bugs
Post by: Almas on 2014-12-18, 05:15:56
Also one small bug:

On a DNS Template Pool and also Servers page Up and Down buttons of list doesn't work.

Error on javascript console is:
ReferenceError: frm_client_b_dnssyncserver_list is not defined
Title: Re: Kloxo-MR 7 Bind DNS bugs
Post by: Almas on 2014-12-18, 05:41:16
Update on a first bug that I reported:

Slave server's named.master.conf file is empty. My fix also can't handle it. Now DNS zones only on master server. But can't created on Secondary name server. Please check and fix this bug.
Title: Re: Kloxo-MR 7 Bind DNS bugs
Post by: MRatWork on 2014-12-18, 05:47:10
Please don't posting your issue in github. Enough in this forum.
Title: Re: Kloxo-MR 7 Bind DNS bugs
Post by: Almas on 2014-12-22, 09:03:44
Also this bug affecting on Slave (secondary) DNS servers.

In /opt/configs/nsd/conf/master/ folder there is zone files created. But /opt/configs/nsd/conf/defaults/nsd.master.conf and /opt/configs/bind/conf/defaults/named.master.conf is empty.

Then I think 'localhost,ns2.nameserver.com' should be correct and need fix DNS need to create files on both master and slave servers. How can I fix this? Can you help me. Thanks.
Title: Re: Kloxo-MR 7 Bind DNS BUGS!!
Post by: MRatWork on 2014-12-22, 10:06:29
Kloxo-MR not using 'Role' like Kloxo do. For secondary DNS, use 'Secondary DNS Configure' feature and secondary zone will save in  /opt/configs/nsd/conf/slave instead  /opt/configs/nsd/conf/master (for nsd).
Title: Re: Kloxo-MR 7 Bind DNS BUGS!!
Post by: Almas on 2014-12-22, 11:08:49
It doesn't working too.

After ran /script/fixdns --server=all


Then on master server

Files created in /opt/configs/nsd/conf/master

Also in defaults folder:
zones created to this file /opt/configs/nsd/conf/nsd.master.conf
And it's working OK.

But on secondary server:
Files created in /opt/configs/nsd/conf/master
and folder /opt/configs/nsd/conf/slave  is empty (It's different from your mentioned)

Also in /opt/configs/nsd/conf/defaults folder all those files are empty:
nsd.acl.conf  nsd.master.conf  nsd.reverse.conf  nsd.slave.conf

Title: Re: Kloxo-MR 7 Bind DNS BUGS!!
Post by: Almas on 2014-12-24, 03:38:32
Did anyone confirm this bug? ???