tbrehm
2012-10-19 78c462c99fcb49eff01b7a78e3a98521a61e1493
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
$host="IP_ADDRESS";
$user="USERNAME";
$password="PASSWORD";
mysql_connect($host,$user,$password) or die(mysql_error());
mysql_select_db("dbispconfig");
$result = "";
$result = mysql_query("SELECT origin FROM dns_soa ORDER BY origin ASC;");
while($row = mysql_fetch_array($result))
{
        $zone=substr($row["origin"],0,-1);
        system("rndc retransfer ".$zone);
}
?>