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);
| }
| ?>
|
|