Skip to content
dns_export_to_bind_retrans_daily.php 369 B
Newer Older
tbrehm's avatar
tbrehm committed
<?php
$host="IP_ADDRESS";
$user="USERNAME";
$password="PASSWORD";
mysql_connect($host, $user, $password) or die(mysql_error());
tbrehm's avatar
tbrehm committed
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);
tbrehm's avatar
tbrehm committed
}