Reply
I need to edit DNS records through PHP
Old 01-10-2008, 10:19 AM I need to edit DNS records through PHP
Experienced Talker

Posts: 43
Name: Jan Jelinek
I am trying to solve this:

I got couple of domains I want to run under one PHP script. I wonder if there is an apache/php mod that would allow me to edit DNS records directly on the server. However, I need to assign the domains from within the script

It is a dedicated server, so installing additional packages is not an issue.

Any ideas?
__________________
Weapon of mass optimization
Jan Jelinek is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 01-10-2008, 10:39 AM Re: I need to edit DNS records through PHP
tripy's Avatar
Fetchez la vache!

Posts: 1,852
Name: Thierry
Location: In the void
In that case and if you are using BIND, try the mysql db driver. http://mysql-bind.sourceforge.net/
Documentation and install instruction (Warning, you need to recompile BIND to take advantage of this): http://mysql-bind.sourceforge.net/docs.php
It allows you to store BIND dns zone configurations in a mysql db rather that in a file.
It would be the easiest way.
__________________
Listen to the ducky: "This is awesome!!!"


Last edited by tripy : 01-10-2008 at 10:41 AM.
tripy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to I need to edit DNS records through PHP
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10786 seconds with 13 queries