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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th February 2009, 21:57
Murder4Al Murder4Al is offline
Junior Member
 
Join Date: Apr 2007
Posts: 12
Thanks: 1
Thanked 3 Times in 2 Posts
Default myDNS & Bind slaves - ISPConfig3

Hi,

I'm doing some testing with the great ISPConfig3 and I ran into some questions with myDNS. As it's very light in docs I resort to here.

I have several off-site dns backups who run bind (not discussable) and I want them to AXFR their stuff of the main myDNS server.
I have added 'allow-axfr = yes' to the mydns.conf, and I have verified this actually working after adding my slave dns-ip's to the xfer field.

What I'm not getting is the notify part.
If I got it correctly myDNS does not sent notifies to the slaves whenever updates are performed (it's not aware of such a change since only the underlying table is updated and the deamon is not notified), thus creating an potential problem.
But the documentation states that that is the setting 'notify-enabled' is true then notifies will be generated on startup, this is something that I can't confirm to be working.
I find that updating the slaves in a timely matter is important for good service.

Any ideas ?

Greets
Kobe
Reply With Quote
Sponsored Links
  #2  
Old 19th February 2009, 11:50
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,784
Thanks: 840
Thanked 5,610 Times in 4,421 Posts
Default

I see two options:

1) Rund mydns on the slaves too and use the mysql replication faetures in ispconfig to replicate the dns records to the other instances.

2) Restart the mydns on the master by cron from time to time, e.g. once an hour.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 20th February 2009, 13:20
Murder4Al Murder4Al is offline
Junior Member
 
Join Date: Apr 2007
Posts: 12
Thanks: 1
Thanked 3 Times in 2 Posts
Default

Till,

Running myDNS on the slaves is not an option (those servers are not mine and re slaving several thousands of other domains from other sources).

Upon restarting myDNS NOTIFIES are not sent out currently (for a reason unknown to me). Is this a possible bug in myDNS or am I missing something?
In case of a bug I'll have a look in the source ;-)
Reply With Quote
  #4  
Old 20th February 2009, 13:28
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,784
Thanks: 840
Thanked 5,610 Times in 4,421 Posts
Default

Quote:
Originally Posted by Murder4Al View Post
Till,

Running myDNS on the slaves is not an option (those servers are not mine and re slaving several thousands of other domains from other sources).

Upon restarting myDNS NOTIFIES are not sent out currently (for a reason unknown to me). Is this a possible bug in myDNS or am I missing something?
In case of a bug I'll have a look in the source ;-)
I'am not suere if its a bug as I'am not a mydns developer. Maybe its just a missing feature? mydns isteslf is not under development anymore as far as I know but the successor project is mydns-ng which can be found at sourceforge and which is used for ispconfig as well. Maybe you might ask the developers in their mailing list if they know a solution for this.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 20th February 2009, 15:17
Murder4Al Murder4Al is offline
Junior Member
 
Join Date: Apr 2007
Posts: 12
Thanks: 1
Thanked 3 Times in 2 Posts
Default

A look in the source learned that 'allow-update' also needs to be enabled for the notify-on-start feature to kick-in.

Since bind is trying to be smart it uses IXFR's as a response it seems, so I just need to figure out how to enable that.

BTW, I'm using the -ng version evidently.
Reply With Quote
  #6  
Old 23rd February 2009, 09:48
theamoeba theamoeba is offline
Junior Member
 
Join Date: May 2008
Posts: 11
Thanks: 3
Thanked 1 Time in 1 Post
Question

What I am struggling to understand is, why did u decide to change over to mydns when bind seemed to be working just fine. i will grant u that mydns is easier to understand.

i am running fedora 9 (i know this experimental, and no i am not changing to ubuntu/debian). mydns starts beautifully using a service mydns start, but it refuses to start on boot - it gives an error 111 mysql connection error.

can someone please help with this as all of the mysql details are correct and it loads nicely once the box has booted and i do a service start manually.

it just occurred to me that since it is moaning about a mysql.sock error, is it not possible that mydns is starting before mysqld and therefore cannot connect?

J
Reply With Quote
  #7  
Old 23rd February 2009, 10:11
theamoeba theamoeba is offline
Junior Member
 
Join Date: May 2008
Posts: 11
Thanks: 3
Thanked 1 Time in 1 Post
Smile

Quote:
Originally Posted by theamoeba View Post
What I am struggling to understand is, why did u decide to change over to mydns when bind seemed to be working just fine. i will grant u that mydns is easier to understand.

i am running fedora 9 (i know this experimental, and no i am not changing to ubuntu/debian). mydns starts beautifully using a service mydns start, but it refuses to start on boot - it gives an error 111 mysql connection error.

can someone please help with this as all of the mysql details are correct and it loads nicely once the box has booted and i do a service start manually.

it just occurred to me that since it is moaning about a mysql.sock error, is it not possible that mydns is starting before mysqld and therefore cannot connect?

J
i figured out my own questions.

mydns is very much easier to use than bind as it runs on sql - mysql or postgresql. so updating the records is really simple.

managed to fix the mysql issue, i was right - mydns was starting before mysqld - therefore it would never be able to connect would it? here is a forum post on changing the service boot order in fedora (i suppose this will work in any red hat variation): https://www.linuxquestions.org/quest...ervice-239886/

J

Last edited by theamoeba; 23rd February 2009 at 10:14.
Reply With Quote
The Following User Says Thank You to theamoeba For This Useful Post:
till (23rd February 2009)
  #8  
Old 1st April 2009, 09:27
kr0hmy kr0hmy is offline
Junior Member
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy trying to make IXFR work

Hello! I'm new to ispconfig and i love it

I've set-up a server at ovh.com with ispconfig 3 and ubuntu 8.04. This hosting provider give me the possibility to use a secondary DNS service (i don't have any access to config or anything).

Everything is working fine when the slave (they use BIND) sync with my main DNS for the first time (AXFR type). But when i update the zone records, the slave can't get the updated records.

Like Murder4Al, i found out that BIND use IXFR to get the updated records. Since i can't modify the slave config, i modified the Mydns-ng config to activate IXFR. But to be fully fonctionnal myDNS require a database structure change :
These 2 fields are needed in the dns_rr table for myDNS to be capable of IXFR zone transfers (obtained with command : mydns --create-tables):
Code:
  stamp      timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  serial     INT UNSIGNED DEFAULT NULL,
I'm not sure about what ispconfig file(s) i need to modify to insert the updated serial in the dns_rr table? Since i'm not so confident about my php skills... i hope someone could help me on this
Reply With Quote
  #9  
Old 1st April 2009, 09:38
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,784
Thanks: 840
Thanked 5,610 Times in 4,421 Posts
Default

You will have to modify the sql dump, the form definitions in the dns module of the interface and then add some code to the form handler scripts of the dns module of the interface to fill in the correct values.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 2nd April 2009, 10:24
andypl andypl is offline
Member
 
Join Date: Mar 2006
Location: Warsaw, Poland
Posts: 99
Thanks: 1
Thanked 3 Times in 3 Posts
 
Default

MyDNS may instead use bind-mysql?
http://mysql-bind.sourceforge.net/
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
Permission Denied Bind Slave Server Problems wxman Server Operation 17 22nd March 2014 13:30
Problem on restart bind9 satimis Server Operation 6 30th October 2007 03:01
MyDNS (Master) -> Bind (Slave) Support todgerme General 4 4th September 2007 15:45
ISPConfig and BIND on Debian sarge (rfc1912 : failed on zonecheck) arnaud Installation/Configuration 13 6th March 2007 13:40
Bind-Chroot-Howto (Debian) spaz HOWTO-Related Questions 5 9th March 2006 15:50


All times are GMT +2. The time now is 18:28.


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