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