Thanks chris, I’ll give it a whirl today…
Chris,
Getting an error using that file…
Parse error: parse error, unexpected T_STRING in /chroot/home/interworx/nodeworx/html/dns-export.php on line 5
Can you open a ticket and provide your login info, it works ok for me.
Chris
Done. Thanks chris.
xlogicgroup,
You mentioned that serials were missing but I do have them being exported on the SOA. Can you shoot me your XML file that has them missing when you get a sec?
Chris
Thanks for fixing thatup chris. Looking forward to the next update.
Chris,
All is working great except dns-export needs to export <target> in the SOA record. For example ns1.domain.com etc…
Any chance of getting this added in? I can hardcode it for now but having it dynamic via interworx dns-export would be great.
Thanks
I’ll get it added… not sure why I didn’t notice it before :S.
Chris
Great thanks alot…
With our current install (3 days old) of Iworx we are syncing 2 external (tinydns) servers by copying the data.cdb file as suggested. Ok, worx for now.
However, not really pleased with the way it works.
Our normal setup is as followed (and I hope this is also possible with tinydns/iworx):
We have 3 main webservers, all running bind (the newly created iworx box is not yet running production). Server names: NOMAD, KLINGON and VULCAN
Next to that, 2 seperate boxes that function as DNS server, also running bind, server names: NS & NS2
Alle 3 webservers fill their own zone files, setting themselves as MASTER and setting NS & NS2 as the DNS servers.
Every 4 hours all 3 webservers generate a .txt file and fill them with the zones they are master for (just the zone names, aka domainnames).
Both NS and NS2 will then place that .txt into the bind config and setting the right webserver as master, and themselves as slave.
This way (example), when a new domain is created on webserver NOMAD, within 4 hours both DNS servers have this domain in their config file. Since the actual DNS server (NS & NS2) doesn’t know the zone records yet, it requests a zone transfer from NOMAD.
When a client changes the domain config through Plesk (adding / changing records) the webserver (or bind on that server) will instantly sent a notification to its slaves, beeing NS and NS2. And when NS or NS2 reboots it will do a zone transfer again from all webservers.
At this moment, we need to run 2 extra DNS servers (NS3 en NS4) to get the data from the Iworx server.
We would like to keep running the same setup (using NS and NS2). Thus having bind to get its master information from tinydns.
So basicly we just need:
- tinydns/iworx to produce a .txt file with zone names
- tinydns needs to allow a zone transfer request from NS and NS2
- tinydns to send dns notifications to its slaves (beeing NS and NS2)
Possible ??
So basicly we just need:
- tinydns/iworx to produce a .txt file with zone names
- tinydns needs to allow a zone transfer request from NS and NS2
- tinydns to send dns notifications to its slaves (beeing NS and NS2)
Possible ??
The first 2 are possible, the last isn’t but with #2 in place #3 shouldn’t be as critical.
#1 can be done by accessing the iworx db directly or by using the xml export URL to build the text file. #2 can be done by setting up axfrdns (from the tinydns site).
Chris
Thanks for fixing thatup chris. Looking forward to the next update.
This is all set in the next point release.
Chris
$IWORX_SERVERS = array(‘cpserver.yourdomain.com’); // to add additional servers
Can I just put the ip’s of the servers in there?
Thanks,
Clint
UPDATE
[root@srv001 dns_sync]# /usr/local/dns_sync/dns_sync
Content-type: text/html
X-Powered-By: PHP/4.3.11
Downloading XML Data File From: 216.86.157.23
WARNING: Data file could not be downloaded for: 216.86.157.23
Creating Main TINYDNS Datafile
ERROR: 216.86.157.23 temporary tinydns datafile not readable
I am that far . . .
Has anyone been able to make this script work from, interworx box to interworx box?
[root@srv002 ~]# /usr/local/dns_sync/dns_sync
–13:17:55-- https://216.86.157.25:2443/nodeworx/dns-export.php
=> /usr/local/dns_sync/xml/216.86.157.25' Connecting to 216.86.157.25:2443... connected. WARNING: Certificate verification error for 216.86.157.25: self signed certificate WARNING: certificate common name
interworx.info’ doesn’t match requested host name 216.86.157.25'. HTTP request sent, awaiting response... 200 OK Length: 2,154 (2.1K) [text/xml] 100%[====================================================================>] 2,154 --.--K/s 13:17:55 (8.38 MB/s) -
/usr/local/dns_sync/xml/216.86.157.25’ saved [2154/2154]
PHP Notice: Undefined index: record in /usr/local/dns_sync/dns_sync on line 317
PHP Notice: Undefined index: value in /usr/local/dns_sync/dns_sync on line 280
Content-type: text/html
X-Powered-By: PHP/4.3.11
Downloading XML Data File From: 216.86.157.25
XML Data File Successfully Downloaded For: 216.86.157.25
####### - Starting to parse the xml file
####### - 8 records added for server: 216.86.157.25
Creating Main TINYDNS Datafile
Writing 216.86.157.25 data to new tinydns datafile…Done
Copying new data to tinydns production file
Running the tinydns makefile…Done
dns_sync completed successfully
Do I need to be worried about:
PHP Notice: Undefined index: record in /usr/local/dns_sync/dns_sync on line 317
PHP Notice: Undefined index: value in /usr/local/dns_sync/dns_sync on line 280
/var/djbdns/tinydns/root/data
Has the dns info from the server I am am trying to sync it’s record, but the records never seem to get merged.
Any help would be great.
Thanks,
Clint
Hi
Just to be updated as for now I just copy the iworx cdb file from servers to main one, is the SOA is exported yet ?
Pascal
I believe Chris has already fixed this.
Just to be updated as for now I just copy the iworx cdb file from servers to main one, is the SOA is exported yet ?
Yep, all fields are exported.
Chris
Does the dns_sync script still exist? gethosted’s path seems to have gone the way of the dodo.
Would someone be kind enough to paste the contents/attach the script?
JB
ehhh yea, the script is still there . . . the guy isn’t around much, we were even willing to pay him for help ($75 an hour) and he got on the server for about 10 min then left, I think the size of our project was to large . . . not sure, but I know Chris and Staff are working hard to have it built into the panel, should be out end of this year, start of next.
Thanks,
Clint
… can’t get to from here.
techdev.gethosted.net = nonexsitent domain.
Is is located somewhere else (path change, domain change) that I’m overlooking?
JB