forked from Snider/php-cloudDNS
[ALPHA WARE] A PHP Binding to the Rackspace Cloud DNS API
kebray/php-cloudDNS
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Rackspace DNS PHP API README Copyright (C) 2011 Paul Lashbrook This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>. @author Paul Lashbrook - OriginalWebware.co.uk @contributor Alon Ben David @ CoolGeex.com CHANGES 30/08/2011 Alon Ben David @ CoolGeex.com - Class name now rackDNS - callback function to cycle through registered call backs with timeout in place - Added support to US rackspace DNS API - delete_domain Now called delete_domains (accept int for one domain OR array for multiple domains) - added modify_domain function to modify domain configuration - added domain_import function to import BIND9 format string - created a sample.php file with code samples PHP API binding to Rackspace Cloud DNS (US & UK) ----------------------------------------- This is strictly for PHP5 since PHP4 should be forgotten forever. PLEASE NOTE: any help suggestions/requests welcome Server communication code originally from and slightly adapted, thanks to the work of that author making this was relatively easy @link http://snider.github.com/php-cloudDNS/ via https://github.com/eyecreate/Rackspace-Cloud-PHP-Library All API Methods Implemented So Far: Check sample.php for code sample $dns = new rackDNS($rs_user,$rs_api_key); //($user, $key, $endpoint = 'UK') $endpoint can be UK or US // Show all domains avalible $dns->list_domains(50,0); //($limit = 10, $offset = 0) $dns->list_subdomains($sampleID);//($domainID) $dns->domain_export($sampleID);//($domainID) $dns->list_records($sampleID);//($domainID) $dns->list_record_details($sampleID,$recID);//($domainID,$recordID) $dns->domain_import($sampleImport); $dns->list_domain_search('domain.com'); $dns->modify_domain($sampleID,'info@domain.com'); //($domainID = false , $email = false , $ttl = 86400 , $comment = 'Modify Domain Using rackDNS API') $dns->delete_domains($sampleID); delete_domain_record($domainID,$recordID) list_domain_details($domainID = false, $showRecords = false, $showSubdomains = false); create_domain($name = false, $email = false, $records = array()) create_domain_record($domainID = false, $records = array()) create_domain_record_helper($type = false, $name = false, $data = false, $ttl = 86400, $priority = false) $dns->getLastResponseStatus(); //returns status code $dns->getLastResponseMessage();//returns status message
About
[ALPHA WARE] A PHP Binding to the Rackspace Cloud DNS API
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published