* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zone.h,v 1.178 2010/08/16 22:21:07 marka Exp $ */
+/* $Id: zone.h,v 1.179 2010/12/14 00:39:59 marka Exp $ */
#ifndef DNS_ZONE_H
#define DNS_ZONE_H 1
dns_zone_setcheckmx(dns_zone_t *zone, dns_checkmxfunc_t checkmx);
/*%<
* Set the post load integrity callback function 'checkmx'.
- * 'checkmx' will be called if the MX is not within the zone.
+ * 'checkmx' will be called if the MX TARGET is not within the zone.
*
* Require:
* 'zone' to be a valid zone.
void
dns_zone_setcheckns(dns_zone_t *zone, dns_checknsfunc_t checkns);
/*%<
- * Set the post load integrity callback function 'checkmx'.
- * 'checkmx' will be called if the MX is not within the zone.
+ * Set the post load integrity callback function 'checkns'.
+ * 'checkns' will be called if the NS TARGET is not within the zone.
*
* Require:
* 'zone' to be a valid zone.
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zone.c,v 1.577 2010/12/02 23:22:42 marka Exp $ */
+/* $Id: zone.c,v 1.578 2010/12/14 00:39:59 marka Exp $ */
/*! \file */
dns_name_t *foundname;
int level;
+ /*
+ * "." means the services does not exist.
+ */
+ if (dns_name_equal(name, dns_rootname))
+ return (ISC_TRUE);
+
/*
* Outside of zone.
*/