mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
2984. [bug] Don't run MX checks when the target of the MX record is ".". [RT #22645]
This commit is contained in:
parent
2ed508c655
commit
8d8f0b4659
3 changed files with 14 additions and 5 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
2984. [bug] Don't run MX checks when the target of the MX record
|
||||
is ".". [RT #22645]
|
||||
|
||||
2983. [bug] Include "loadkeys" in rndc help output. [RT #22493]
|
||||
|
||||
--- 9.8.0a1 released ---
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* 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
|
||||
|
|
@ -1686,7 +1686,7 @@ void
|
|||
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.
|
||||
|
|
@ -1705,8 +1705,8 @@ dns_zone_setchecksrv(dns_zone_t *zone, dns_checkmxfunc_t checksrv);
|
|||
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.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* 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 */
|
||||
|
||||
|
|
@ -1750,6 +1750,12 @@ zone_check_mx(dns_zone_t *zone, dns_db_t *db, dns_name_t *name,
|
|||
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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue