Skip to content

Instantly share code, notes, and snippets.

View sirgt's full-sized avatar
🐙

Leonel Reyes sirgt

🐙
View GitHub Profile
@sirgt
sirgt / dns.php
Created August 26, 2014 17:32 — forked from ryanrhanson/dns.php
<?php
/*
This script will take all dns records on a SoftLayer account and create a dns zone file for them in the 'zones' subdirectory. If this subdirectory does not exist, it will be created.
If single_use is set to true, you can supply your API Username and Key as arguments to the script. single_use also assumes that it is in the same directory as the SoftLayer folder from the PHP API Client. If single_use is false, it will draw from a file in the 'configuration' subdirectory named apiconfig.php, which should define apiUsername, apiKey, and the path to the SoapClient.class.php file.
*/
$single_use = true;
if ($single_use) {
require_once('SoftLayer/SoapClient.class.php');