Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 10d2604a91
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (15 sloc) 0.336 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/usr/bin/php -q
<?php
require(dirname(__FILE__).'/includes/globals.php');

if($argc == 4) {
    if(!$dns->addZone($argv[1], $argv[2], $argv[3])) {
        print $dns->error . "\n";
    }
    else {
        print "Added $argv[1]:$argv[2] password:$argv[3]\n";
    }
}
else {
    print "Usage: $argv[0] <zone> <ip> <password>\n";
}

?>
Something went wrong with that request. Please try again.