hostb Posted January 23, 2012 Share Posted January 23, 2012 Hi I'm moving to WHMCS from my old system and very excited about it. I have a number of things to sort out. One of them is below. On my old system I added a DNS zone to WHM for all domains that were purchased without hosting. This is for two reasons. 1) Domains get a default parking page. 2) Irish domains (.ie) must resolve to a valid nameserver for registration to go through. I used the below code (WHM PROVIDED API ) in an after function hook on my old system. Where can I stick this code in WHMCS. Or does WHMCS provide a better solution? The first three lines of code are specific to my old billing system. I also need a WHMCS equivalent for the variables used. //Determine If The Domain Has Hosting Attached? //If not add a DNS zone to WHM. $hashosting = sqlsingle("SELECT * FROM hostinglist WHERE domain='$cSld.$cTld' and ownerid='$ownerid'","id"); if($hashosting ==0) { $ip = "xxx.xxx.xxx.xxx"; $root_pass = "password"; $domain = $cSld.".".$cTld; $xmlapi = new xmlapi($ip); $xmlapi->password_auth("root",$root_pass); //$xmlapi->set_http_client('curl'); $xmlapi->set_port(2086); $xmlapi->set_debug(1); $result=$xmlapi->adddns($domain,$ip); } ?> 0 Quote Link to comment Share on other sites More sharing options...
konradwalsh Posted January 31, 2012 Share Posted January 31, 2012 did you get anywhere with this? I would love to know the answer too 0 Quote Link to comment Share on other sites More sharing options...
hostb Posted February 19, 2012 Author Share Posted February 19, 2012 No answer apparently 0 Quote Link to comment Share on other sites More sharing options...
Keksi Posted March 15, 2012 Share Posted March 15, 2012 This is also something we need to know about when implementing EPP system for .no registrations. Norwegian domains (.no) must also resolve to a valid nameserver for registration to go through. 0 Quote Link to comment Share on other sites More sharing options...
hostb Posted April 29, 2012 Author Share Posted April 29, 2012 Any help from someone in the know would be much appreciated. 0 Quote Link to comment Share on other sites More sharing options...
azizarnold Posted August 3, 2012 Share Posted August 3, 2012 Me too - This is also critical for Uniforum SA (co.za) domains. Please!!!! 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 12, 2012 Share Posted December 12, 2012 Let me understand. Do you need to auto add an hosting package on cP for every domain registration (or for some particular tld)? If it's so it's possible with an action hook. I'm using it from months. 0 Quote Link to comment Share on other sites More sharing options...
Keksi Posted December 12, 2012 Share Posted December 12, 2012 I'll bet the optimal way to go is to have one package (Named _ParkedDomains or something), and when a customer parks a domain, whmcs uses an api to add the domain as a parking on this account. Then some sort of automation to remove domains that are cancelled or ordered with hosting. Do you mind sharing your hook? I'll bet there is more people here that may be can develop it further 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 12, 2012 Share Posted December 12, 2012 I make it in this way: Client A orders example1.com, example2.com and example3.com domains with no hosting. As soon as he pays i "secretly" add 3 fake-hosting plans on Plesk or cPanel one for each domain (basically these fake-hosting plans are DNS services) then i auto-register domain and, parallely, i auto-setup the 3 DNS plans on my Plesk/cPanel servers. I can also decide where all these DNS plans should go by default (e.g. today i send them all on 123.123.123.1 server but tomorrow i can also assign 123.123.123.2 server for this role). Now on my order and invoice i have the following set of items: Domains and their relative DNS plans are synced so it means that DNS will always follow the status of his related domain. Domain active -> DNS active, domain expired -> DNS suspended, domain cancelled -> DNS terminated (deleted from Plesk/cPanel). I also hide from product list and invoice all these DNS plans so customers can only see their domains with nothing "attached". Is it what you were looking for? 0 Quote Link to comment Share on other sites More sharing options...
Keksi Posted December 12, 2012 Share Posted December 12, 2012 Yes, exactly. Thats actually better that having one shared hostingpackage for all domains, as this will give the option for further development, like an option for clients to administer the DNS within WHMCS. 0 Quote Link to comment Share on other sites More sharing options...
grafland Posted May 13, 2014 Share Posted May 13, 2014 Did you try may use the services of registrars who offer so-called services like trustee service and local presence. You can register through them, even the most entrenched domain restrictions. So you don’t have then to worry about such things as parking DNS in particular Zone WHM. If you are looking for such companies that search for them in google for the phrases: local proxy and trustee. 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.