#1  
Old 25th March 2010, 13:23
flevoict flevoict is offline
Junior Member
 
Join Date: Aug 2009
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Default Bulk add DNS Records

Dear all,

I hope somebody can help.

We have installed a third NS server in an other datacenter. Now I want to add an extra NS record to all my domains in ISP config (about 50 domains).

Does somebody know how to do this in bulk, like add a record with mysql or something like that.

I hope somebody can help me so I don't have to this manually.

Cheers,

Bas aka Flevoict
Reply With Quote
Sponsored Links
  #2  
Old 25th March 2010, 21:14
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,190
Thanks: 829
Thanked 5,418 Times in 4,260 Posts
Default

You can do this e.g. with a script that uses the datalogInsert function from the ispconfig mysql library to insert the records in the database.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
adamassasda291 (27th June 2013)
  #3  
Old 26th March 2010, 10:09
flevoict flevoict is offline
Junior Member
 
Join Date: Aug 2009
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Thanks Till for your reply.

Now I have the following issue, I'm not really a database/mysql programmer, more a network engineer who has to manage these things as well.

Is there somebody who can point me in the right direction with the sql script.

Thnx in advance.

Bas
Reply With Quote
The Following User Says Thank You to flevoict For This Useful Post:
adamassasda291 (9th July 2013)
  #4  
Old 26th March 2010, 18:48
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 426
Thanks: 33
Thanked 55 Times in 38 Posts
Send a message via Skype™ to SamTzu
Default

I just updated our MyDNS sync script.
http://www.howtoforge.com/forums/sho...279#post209279
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #5  
Old 28th May 2010, 16:08
BorderAmigos BorderAmigos is offline
Senior Member
 
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 33 Times in 31 Posts
Send a message via MSN to BorderAmigos Send a message via Yahoo to BorderAmigos
Default

What and where is the "ispconfig mysql library"? I will write a script for it if I can find it.
__________________
System6Hosting.com, ISPConfig 3, Debian.
Reply With Quote
The Following User Says Thank You to BorderAmigos For This Useful Post:
adamassasda291 (9th July 2013)
  #6  
Old 28th May 2010, 16:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,190
Thanks: 829
Thanked 5,418 Times in 4,260 Posts
Default

The ISPConfig mysql library is here:

/usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php

Your php script should look like this (untested, partly pseudo code):

Code:
<?php

include_once('/usr/local/ispconfig/interface/lib/config.inc.php');
include_once('/usr/local/ispconfig/interface/lib/classes/db_mysql.inc.php');

$db = new db;

$tablename = "database_table_name";
$insert_data = "(a,b,c) values ('a','b','c')";
$index_field = "dbtable_index_field_name";

$db->datalogInsert($tablename, $insert_data, $index_field);

?>
The content of the variables has to be changed to match the data and table that you want to modify.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
adamassasda291 (21st June 2013)
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
sarg issue while generating reports for squid mail4vij Server Operation 3 31st December 2009 13:12
Ubuntu Server, ISPConfig, Domain name, and problems NYCSavage Server Operation 5 27th November 2009 17:45
Google Apps dayjahone General 19 29th March 2008 17:25
Unable send receive emails vassilis3 Installation/Configuration 15 19th May 2007 14:34
No SPF record. beryl Installation/Configuration 6 17th May 2007 19:52


All times are GMT +2. The time now is 16:47.


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