niels Posted November 1, 2009 Share Posted November 1, 2009 Would anyone be interested in a PowerDNS module? I made one for my own use, but with some small changes I could publish it. Current feature set: - Zone creation/removal through Admin area (1 product instance manages 1 domain.) - Editing records within the zone through the Client area. - IDN support. - Beta quality (it works for me, but not too many domains use it yet.) 0 Quote Link to comment Share on other sites More sharing options...
Vincent Vega Posted November 1, 2009 Share Posted November 1, 2009 Sounds great. If you would need some testing on another PowerDNS system let me know, I can help with it. 0 Quote Link to comment Share on other sites More sharing options...
Michael.Terence Posted November 10, 2009 Share Posted November 10, 2009 I too would be very interested in this. I could fumble my way through developing my own, and had planned on doing so... but it's been on my list for 9 months now and I don't know that I'd ever get to it. 0 Quote Link to comment Share on other sites More sharing options...
niels Posted November 12, 2009 Author Share Posted November 12, 2009 Please find first version here: https://my.anuson.com/modules/servers/powerdns/powerdns.phps Comments/bugfixes appreciated. 0 Quote Link to comment Share on other sites More sharing options...
niels Posted November 12, 2009 Author Share Posted November 12, 2009 Btw, this requires the php5-idn module. 0 Quote Link to comment Share on other sites More sharing options...
Michael.Terence Posted November 12, 2009 Share Posted November 12, 2009 Awesome, thanks. Any instructions on how to enable it? I would guess we just go to Setup -> Servers -> Add New Server & give it the details for the powerdns node? I haven't gone that far yet just asking for clarification. Thanks! for those who aren't using the debian/ubuntu package manager, if you want to install the idn module for php just do: pecl install idn-0.2.0 Keep in mind that it's still considered a "beta" extension and read the instructions for adding the line to your php.ini file 0 Quote Link to comment Share on other sites More sharing options...
niels Posted November 13, 2009 Author Share Posted November 13, 2009 Hi Michael, I add it under Products/Services. The module settings allow you to enter the server IP. You're right though, it would be better to hook it into the WHMCS server list. Putting that on the TODO. 0 Quote Link to comment Share on other sites More sharing options...
ffeingol Posted November 13, 2009 Share Posted November 13, 2009 This module seems quite interesting. So far I've only read the code and not actually installed it, so bear with me if my question dosen't totally make sense. I want to try and understand things before we install it. This module needs to be set up as a 'product / service'. That would mean: - You'd have to set up the product / service as free unless you wanted to actually charge for DNS management? - The client would potentially see the domain twice under products / services (once for the hosting account and once for DNS management)? Thanks 0 Quote Link to comment Share on other sites More sharing options...
MWende Posted November 13, 2009 Share Posted November 13, 2009 Hello, i have installed teh addon, but when i create an Entry the site is blank... In the Custom View the site also is blank... Whats wrong here ??? Thanks 0 Quote Link to comment Share on other sites More sharing options...
Bernard Posted April 12, 2010 Share Posted April 12, 2010 Is there an other solution for this? Or a fix of this module? 0 Quote Link to comment Share on other sites More sharing options...
sloop Posted May 6, 2010 Share Posted May 6, 2010 Has anyone used this module? I'm going to try it out. 0 Quote Link to comment Share on other sites More sharing options...
BarrySDCA Posted May 11, 2010 Share Posted May 11, 2010 I am also curious about this module. Has anyone tried it? thank you for taking the time to offer your feedback! 0 Quote Link to comment Share on other sites More sharing options...
ckung Posted May 15, 2010 Share Posted May 15, 2010 (edited) Hi Niels I have WHMCS 4.2.1 installed on debian and powerdns on debian on separate servers. I followed the installation discussion in the forum since there's no instruction yet. I copied the code from your post https://my.anuson.com/modules/server.../powerdns.phps then create the server module "powerdns" Installed the idn by using apt-get install idn. Since I'm not sure if php5-idn is needed so I installed it also. I did it to both whmcs and powerdns server. I add the powerdns under products/services and verified the Module settings for the powerdns server. When I added a new order and I got the following error. Fatal error: Call to undefined function idn_to_ascii() in /var/www/whmcs/modules/servers/powerDNS/powerDNS.php on line 25 Please advise. Thanks for your help. Charles Edited May 15, 2010 by ckung 0 Quote Link to comment Share on other sites More sharing options...
sloop Posted May 27, 2010 Share Posted May 27, 2010 for testing you can disable IDN support by changing line 28 to $this->domain_idn = $this->domain; 0 Quote Link to comment Share on other sites More sharing options...
ckung Posted May 29, 2010 Share Posted May 29, 2010 Hi Sloop, After I modified it, I got the following error. Fatal error: Call to a member function escape_string() on a non-object in /var/www/whmcs/modules/servers/powerDNS/powerDNS.php on line 35 I also tried to change $query = "SELECT id FROM domains WHERE name='".$this->db->escape_string($this->domain_idn)."'"; to $query = "SELECT id FROM domains WHERE name='".$this->db->escape_string($this->domain)."'"; Thanks for your help! 0 Quote Link to comment Share on other sites More sharing options...
ndew Posted May 29, 2010 Share Posted May 29, 2010 Hi Guys, I'm a bit of a noob when it comes to this stuff, i've created the php file and installed idn however where do i add the module do i put it under the admin directory in modules? (in it's own directory of course). Nick 0 Quote Link to comment Share on other sites More sharing options...
sloop Posted May 30, 2010 Share Posted May 30, 2010 Hi Sloop, After I modified it, I got the following error. Fatal error: Call to a member function escape_string() on a non-object in /var/www/whmcs/modules/servers/powerDNS/powerDNS.php on line 35 I also tried to change $query = "SELECT id FROM domains WHERE name='".$this->db->escape_string($this->domain_idn)."'"; to $query = "SELECT id FROM domains WHERE name='".$this->db->escape_string($this->domain)."'"; Thanks for your help! i didn't get that error but my guess is that the domain you setup for this module doesn't already exist in your powerdns database. i tested with an existing domain and existing records already in db. i'd recommend learning the basics of powerdns w/ mysql first. 0 Quote Link to comment Share on other sites More sharing options...
EZ-CONCEPT Posted July 6, 2010 Share Posted July 6, 2010 Hello, i have installed teh addon, but when i create an Entry the site is blank...In the Custom View the site also is blank... Whats wrong here ??? Thanks Same here... 0 Quote Link to comment Share on other sites More sharing options...
sloop Posted July 7, 2010 Share Posted July 7, 2010 Same here... Did you confirm you have IDN support in PHP? Did you see my previous post about disabling IDN in the script? Do you get anything in your apache error log? 0 Quote Link to comment Share on other sites More sharing options...
totomcs Posted September 8, 2010 Share Posted September 8, 2010 Hi, We have created this module and every thing works perfect. All the domains are save in the table Domain. In the WHCMS the domainname is save in table TBLDomains. Here is a confilct. So when a domain is registrart with WHCMS the domainname is saved in TBLDomeins and i can't see this with Power DNS. Furter the system works perfect only with the above mentioned issieu you need to mannually help this module to get it to work. Regards, Saban 0 Quote Link to comment Share on other sites More sharing options...
totomcs Posted September 8, 2010 Share Posted September 8, 2010 Would anyone be interested in a PowerDNS module? I made one for my own use, but with some small changes I could publish it. Current feature set: - Zone creation/removal through Admin area (1 product instance manages 1 domain.) - Editing records within the zone through the Client area. - IDN support. - Beta quality (it works for me, but not too many domains use it yet.) Hi, We have created this module and every thing works perfect. All the domains are save in the table Domain. In the WHCMS the domainname is save in table TBLDomains. Here is a confilct. So when a domain is registrart with WHCMS the domainname is saved in TBLDomeins and i can't see this with Power DNS. Furter the system works perfect only with the above mentioned issieu you need to mannually help this module to get it to work. Regards, Saban 0 Quote Link to comment Share on other sites More sharing options...
Asim Posted November 25, 2011 Share Posted November 25, 2011 This thread is pretty old. I am not sure if the source linked here (https://my.anuson.com/modules/servers/powerdns/powerdns.phps) will work with WHMCS 5, anyone? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.