Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-07, 22:58:10

Author Topic: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082102  (Read 2935 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
What happend to the djbdns in Kloxo-MR 6.5.0.f-2013082102 ?

Code: [Select]
ps aux | grep dns
root      4619  0.0  0.0   4100   424 ?        S    20:59   0:00 tcpserver -vDRHl0 -x tcp.cdb -- 0.0.0.0 53 //bin/axfrdns
tinydns   4623  0.0  0.0   4056   380 ?        S    20:59   0:00 //bin/tinydns
root      5024  0.0  0.0 103260   844 pts/1    S+   20:59   0:00 grep dns

OK - all services working here.

Let's start /script/fixdns:

Code: [Select]
Fixing DNS server config
- 'dom0001.com'('admin') at 'localhost'
- 'dom0002.com'('admin') at 'localhost'
- 'dom0003.com'('admin') at 'localhost'
- 'dom0004.com'('admin') at 'localhost'

OK - it goes, but let's see what's inside /usr/local/lxlabs/kloxo/log/shell_exec:

Code: [Select]
20:52 Aug/21/2013: Closed Exec /usr/local/lxlabs/kloxo/cexe/closeinput '/etc/init.d/djbdns restart' >/dev/null 2>&1 &
20:53 Aug/21/2013: Closed Exec /usr/local/lxlabs/kloxo/cexe/closeinput '/etc/init.d/djbdns restart' >/dev/null 2>&1 &
20:54 Aug/21/2013: Closed Exec /usr/local/lxlabs/kloxo/cexe/closeinput '/etc/init.d/djbdns restart' >/dev/null 2>&1 &
20:55 Aug/21/2013: Closed Exec /usr/local/lxlabs/kloxo/cexe/closeinput '/etc/init.d/djbdns restart' >/dev/null 2>&1 &
20:56 Aug/21/2013: Closed Exec /usr/local/lxlabs/kloxo/cexe/closeinput '/etc/init.d/djbdns restart' >/dev/null 2>&1 &
20:57 Aug/21/2013: Closed Exec /usr/local/lxlabs/kloxo/cexe/closeinput '/etc/init.d/djbdns restart' >/dev/null 2>&1 &
20:58 Aug/21/2013: Closed Exec /usr/local/lxlabs/kloxo/cexe/closeinput '/etc/init.d/djbdns restart' >/dev/null 2>&1 &
20:59 Aug/21/2013: Closed Exec /usr/local/lxlabs/kloxo/cexe/closeinput '/etc/init.d/djbdns restart' >/dev/null 2>&1 &
21:00 Aug/21/2013: Closed Exec /usr/local/lxlabs/kloxo/cexe/closeinput '/etc/init.d/djbdns restart' >/dev/null 2>&1 &
21:01 Aug/21/2013: Closed Exec /usr/local/lxlabs/kloxo/cexe/closeinput '/etc/init.d/djbdns restart' >/dev/null 2>&1 &

Nothing...

Let's see djbdns folders:

Code: [Select]
ls -l /home/djbdns/tinydns/root/
razem 40
-rwxr-xr-x 1 root root   68 08-21 20:57 add-alias
-rwxr-xr-x 1 root root   69 08-21 20:57 add-alias6
-rwxr-xr-x 1 root root   70 08-21 20:57 add-childns
-rwxr-xr-x 1 root root   67 08-21 20:57 add-host
-rwxr-xr-x 1 root root   68 08-21 20:57 add-host6
-rwxr-xr-x 1 root root   65 08-21 20:57 add-mx
-rwxr-xr-x 1 root root   65 08-21 20:57 add-ns
-rw-r--r-- 1 root root    1 08-21 21:01 data
-rw-r--r-- 1 root root 2048 08-21 20:57 data.cdb
-rw-r--r-- 1 root root   35 08-21 20:57 Makefile

Nothing ?

Maybe no make:

Code: [Select]
yum install make
Loaded plugins: fastestmirror, priorities, protectbase, replace, security
Loading mirror speeds from cached hostfile
 * base: sunsite.icm.edu.pl
 * extras: sunsite.icm.edu.pl
 * kloxo-mr-epel: ftp.icm.edu.pl
 * kloxo-mr-ius: mirrors.ircam.fr
 * updates: sunsite.icm.edu.pl
0 packages excluded due to repository protections
Setting up Install Process
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Nothing to do
[root@localhost log]# make
make: *** Nie podano obiektów i nie znaleziono makefile. Stop.
[root@localhost log]# make -v
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
Ten program jest darmowy; warunki kopiowania s? opisane w ?ród?ach.
Autorzy nie daj? ?ADNYCH gwarancji, w tym nawet gwarancji SPRZEDAWALNO?CI
lub PRZYDATNO?CI DO KONKRETNYCH CELÓW.

Ten program zosta? zbudowany dla x86_64-redhat-linux-gnu

Make is installed. So what's wrong ???
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #1 on: 2013-08-22, 01:25:33 »
Switching back to bind does not build configs too. Switching again from bind do djbdns still not DNS configs. Seems to be a bug inside this version.

Mustafa if you need a test system I can send you a VHD image for VirtualBox.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #2 on: 2013-08-22, 01:28:26 »
Djbdns read dns config in '/home/djbdns/tinydns/root/data.cdb' (create with 'make' from '/home/djbdns/tinydns/root/data' where this file is merge from domain files inside '/home/djbdns/conf/master'). Another file is '/home/djbdns/axfrdns/tcp.cdb' after (create with 'make' from '/home/djbdns/axfrdns/tcp.cdb'; list ips of secondary dns).
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #3 on: 2013-08-22, 01:33:22 »
I know, but there is nothing inside /home/djbdns/conf/master !
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #4 on: 2013-08-22, 02:05:05 »
Sorry, my mistake (wrong copy-paste and because consentration for add/remove).

Open '/usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/dns/driver/dns__lib.php' and then modified:

From:
Code: [Select]
	function dbactionUpdate($subaction)
{
switch ($subaction) {
case "allowed_transfer":
$this->createAllowTransferIps();
break;
case "synchronize":
$this->syncCreateConf();
break;
case "domain":
$this->createConfFile();
break;
case "full_update":
default:
$this->createAllowTransferIps();
$this->createAllowTransferIps();
$this->syncCreateConf();
break;
}
}
To:
Code: [Select]
	function dbactionUpdate($subaction)
{
switch ($subaction) {
case "allowed_transfer":
$this->createAllowTransferIps();
break;
case "synchronize":
$this->syncCreateConf();
break;
case "domain":
$this->createConfFile();
break;
case "full_update":
default:
$this->createConfFile();
$this->syncCreateConf();
$this->createAllowTransferIps();
break;
}
}
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #5 on: 2013-08-22, 02:06:40 »
Add/remove works very well. Now we have to make fix scripts a little bit faster on some systems like mine.

I can wait 2-3 hours for fix, but more than 12 hours is too much.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #6 on: 2013-08-22, 02:08:17 »
It works. Now rebuilding 2000 domains.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #7 on: 2013-08-22, 02:28:13 »
Has this fix been added to yum repo or should I do it manually?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #8 on: 2013-08-22, 02:29:55 »
Still upload (because very slow).
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #9 on: 2013-08-22, 02:33:59 »
djbdns still a bit slow. One domain needs about 9 seconds at about 350 domains stage.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #10 on: 2013-08-22, 03:05:16 »
Yes, djbdns slower then bind because more hard to process configs.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #11 on: 2013-08-22, 03:09:14 »
Quote from: "MRatWork"
Yes, djbdns slower then bind because more hard to process configs.

Still investigating why all fix scripts are so slow on my production system.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #12 on: 2013-08-22, 03:19:00 »
Slower-faster fix process:

1. mail --> depend on mail accounts
2. ftp -> depend on ftp accounts
3. web -> include php-fpm configs
4. dns
5. php.ini
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #13 on: 2013-08-22, 03:29:17 »
I will contact you tomorrow with my findings.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: djbdns does not build configs - Kloxo-MR 6.5.0.f-2013082
« Reply #14 on: 2013-08-22, 18:41:33 »
730 domains processed and now it takes more than 19 seconds to process one domain !

Why Kloxo is rebuilding cdb file each time. The old method was just adding content to that file which was faster.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.041 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM