Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
slave zone - named-zonecheck fails #56
just tracking down another (maybe) bug.
created a slave zone, output is:
the named-zonecheck fails with:
usage: named-checkzone [-djqvD] [-c class] [-f inputformat] [-F outputformat] [-t directory] [-w directory] [-k (ignore|warn|fail)] [-n (ignore|warn|fail)] [-m (ignore|warn|fail)] [-r (ignore|warn|fail)] [-i (full|full-sibling|local|local-sibling|none)] [-M (ignore|warn|fail)] [-S (ignore|warn|fail)] [-W (ignore|warn)] [-o filename] zonename filename"
after some digging i found out that the $zone_name variable is empty in fuction namedSyntaxChecks https://github.com/WillyXJ/facileManager/blob/master/server/fm-modules/fmDNS/classes/class_buildconf.php#L1028
the variable $zone_files contains:
which then causes the empty $zone_name and the failing named check.
The source of the problem is several lines above that where $zone_files gets populated and no checks are done to ensure it's a master zone instead of a slave. (https://github.com/WillyXJ/facileManager/blob/master/server/fm-modules/fmDNS/classes/class_buildconf.php#L995).
I'll make a fix for 1.0.2. Thanks.