#!/usr/local/Hughes/bin/lite

/*
// FUNCTIONs BEGIN
*/

funct nslookup(char $dnss, char $dom) {
echo("DNS: $dnss ... listing domain: $dom\n");
}

funct add_domain(char $dom, char $dnss, char $type) {
$dns[0]	   = $dnss;
$domain[0] = $dom;
}

/*
// FUNCTIONs END
*/

$level = 0;

/*
// END Global VARs
*/

add_domain("rcub.bg.ac.yu", "ns.rcub.bg.ac.yu", "primary");
$level ++;

while ((int)$level > 0) {
   $level = $level - 1;
   nslookup($dns[$level], $domain[$level]);
}

exit(0);
