/*
* Copyright (C) 1999-2007, 2016, 2018 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: notify.c,v 1.37 2007/06/19 23:46:59 tbox Exp $ */
#include <config.h>
#include <dns/rdataset.h>
/*! \file
* \brief
* This module implements notify as in RFC1996.
*/
static void
}
static void
if (msg_result != ISC_R_SUCCESS)
if (msg_result != ISC_R_SUCCESS) {
return;
}
if (rcode == dns_rcode_noerror)
else
}
void
/*
* Interpret the question section.
*/
if (result != ISC_R_SUCCESS) {
"notify question section empty");
goto done;
}
/*
* The question section must contain exactly one question.
*/
"notify question section contains multiple RRs");
goto done;
}
/* The zone section must have exactly one name. */
if (result != ISC_R_NOMORE) {
"notify question section contains multiple RRs");
goto done;
}
/* The one rdataset must be an SOA. */
"notify question section contains no SOA");
goto done;
}
sizeof(cnamebuf));
} else {
namebuf);
}
} else
tsigbuf[0] = '\0';
if (result == ISC_R_SUCCESS) {
if ((zonetype == dns_zone_master) ||
(zonetype == dns_zone_slave) ||
(zonetype == dns_zone_stub))
{
"received notify for zone '%s'%s",
request);
goto done;
}
}
"received notify for zone '%s'%s: not authoritative",
done:
}