Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 7th March 2009, 11:23
grungy grungy is offline
Senior Member
 
Join Date: Dec 2008
Posts: 166
Thanks: 14
Thanked 15 Times in 10 Posts
Default

What about http://sourceforge.net/projects/mydns-ng

Did anyone try this out?

p.s. mydns-ng development is really active - svn log -v https://mydns-ng.svn.sourceforge.net/svnroot/mydns-ng > changelog

Last edited by grungy; 7th March 2009 at 11:37.
Reply With Quote
Sponsored Links
  #12  
Old 7th March 2009, 11:59
Antennipasi Antennipasi is offline
ISPConfig Developer
 
Join Date: Dec 2008
Location: Finland
Posts: 67
Thanks: 6
Thanked 13 Times in 12 Posts
Default

Quote:
Originally Posted by grungy View Post
Do you have any other ideas?
duh, let's try to narrow this down:

in Ispconfig, test mydns actually works:

Code:
dig @localhost domain.in.isconfig.tld
you should get "status: NOERROR" in header.

in slave:

Code:
dig @isconfig.master.tld domain.in.isconfig.tld
you now propably see "status: REFUSED"

check also ispconfig-mydns-database, dns_soa/xfer should include slave-IP, and dns_soa/active = Y.

i am running mydns-ng, and if you are not, i suggest you to switch to it. it works all ok with Ispconfig, no modifications needed.
Reply With Quote
  #13  
Old 7th March 2009, 13:04
grungy grungy is offline
Senior Member
 
Join Date: Dec 2008
Posts: 166
Thanks: 14
Thanked 15 Times in 10 Posts
Default

First of all I will build a mydns-ng .deb package for Debian etch, install it, and see if that will fix the problem.
Reply With Quote
  #14  
Old 7th March 2009, 14:06
grungy grungy is offline
Senior Member
 
Join Date: Dec 2008
Posts: 166
Thanks: 14
Thanked 15 Times in 10 Posts
Default

Antennipasi tnx for your help.

I fixed this problem by installing mydns-ng and I wrote a short tutorial on how to build the mydns-ng package for Debian etch:



http://www.hadzimahmutovic.com/node/2

Last edited by grungy; 7th March 2009 at 14:11.
Reply With Quote
The Following User Says Thank You to grungy For This Useful Post:
falko (7th March 2009)
  #15  
Old 26th April 2009, 08:39
falcontx falcontx is offline
Junior Member
 
Join Date: Apr 2009
Posts: 2
Thanks: 1
Thanked 1 Time in 1 Post
Default

I had this same problem and figured it out with switching to mydns-ng. I had considered switching to mydns-ng until I found out that it's still in development and there has yet to be a "stable" release. In it's current state, mydns-ng is not suitable for use on our production servers.

In post #8, you posted the check_xfer function from axfr.c. That function contains the following query:
Code:
	querylen = snprintf(query, sizeof(query), "SELECT xfer FROM %s WHERE id=%u%s",
		mydns_soa_table_name, soa->id, mydns_rr_use_active ? " AND active=1" : "");
The problem is that the query is looking for "active=1" in the dns_soa table. However, in ISPConfig 3.0.1.1 (and probably the SVN, as well), the "active" field in the dns_soa table is type "enum('N', 'Y')", so that query will always fail.

If you wish to keep mydns, there are two solutions. Either:

1) Change that query in axfr.c to check for "active='Y'" instead of "active=1" and recompile mydns.

2) Alter the "active" field in the dns_soa table to type "int" or "tinyint" and change lines 178-179 of "/usr/local/ispconfig/interface/web/dns/form/dns_soa.tform.php" to the following:
Code:
                        'default'       => '1',
                        'value'         => array(0, 1)
and change lines 92-94 of "/usr/local/ispconfig/interface/lib/classes/listform_actions.inc.php" to the following:
Code:
                                if(strtolower($rec[$key]) == '1' or strtolower($rec[$key]) == '0') {
                                        // Set a additional image variable for boolean fields
                                        $rec['_'.$key.'_'] = (strtolower($rec[$key]) == '1')?'x16/tick_circle.png':'x16/cross_circle.png';

Last edited by falcontx; 15th May 2009 at 08:36.
Reply With Quote
The Following User Says Thank You to falcontx For This Useful Post:
akamarinos (25th May 2009)
  #16  
Old 26th April 2009, 10:40
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,406
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
Default

Hi,

this looks like a bug in mydns and not ispconfig. You can verify this with the command:

mydns --create-tables

then it outputs you the database tables that mydns expects and the column definition for active is:

active ENUM('Y', 'N') NOT NULL DEFAULT 'Y',

So the value can either be Y or N but not 1 or 0.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #17  
Old 26th April 2009, 21:24
falcontx falcontx is offline
Junior Member
 
Join Date: Apr 2009
Posts: 2
Thanks: 1
Thanked 1 Time in 1 Post
Default

Good call. I didn't notice that. So I guess fixing mydns and recompiling or switching to mydns-ng are the two best options.
Reply With Quote
  #18  
Old 29th April 2009, 03:57
rukus77 rukus77 is offline
Member
 
Join Date: Apr 2009
Posts: 33
Thanks: 7
Thanked 4 Times in 4 Posts
Default

thanks for the info on this mydns bug guys!

And thank you for the fix falcontx! It worked like a charm!

Mike
Reply With Quote
  #19  
Old 26th May 2009, 22:49
sonicscott sonicscott is offline
Junior Member
 
Join Date: Apr 2009
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Secondary BIND9 DNS. . .

I did all of the above, but my secondary is still being refused by MyDNS.

Not sure where to start to figure this one out. Any assistance would be greatly welcome!
Reply With Quote
  #20  
Old 27th May 2009, 11:24
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,406
Thanks: 834
Thanked 5,496 Times in 4,326 Posts
 
Default

@sonicscott: Which mydns version do you have installed?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MyDNS as slave DNS server? lano General 6 10th September 2009 07:08
offsite DNS (master and slave) solution jorizzzz Tips/Tricks/Mods 1 9th March 2009 16:04
Slave dns problem blackmask Installation/Configuration 1 3rd October 2007 13:51
SuSE as master DNS server and Centos as slave DNS server... sthompson Server Operation 3 17th September 2006 13:24
Webmail Relay Error palkat General 17 23rd April 2006 18:12


All times are GMT +2. The time now is 10:39.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.