the function FlipIp should be in function.inc
class_dns.inc
/* This function is used to flip the ip address, for example
12.3.45 -> 45.3.12
Because some entries (like zones) are store like that 45.3.12.in-addr.arpa.
but we want to display 12.3.45.
*/
static function FlipIp($ip)
{
tmp = array_reverse(explode(".",
ip));
$new = "";
foreach($tmp as $section){
$new .= $section.".";
}
return(preg_replace("/./","",
new));
}
(from redmine: issue id 636, created on 2012-02-22, closed on 2012-07-03)