Commit 72f964fd authored by Mark Andrews's avatar Mark Andrews

report if zone is CNAME

parent ad7cddd1
Pipeline #2100 passed with stages
in 1 minute and 24 seconds
......@@ -565,6 +565,7 @@ struct summary {
int nxdomainaaaa; /* recursive query got nxdomain */
int faileda;
int failedaaaa;
int cname; /* NS is CNAME */
int cnamea; /* Nameserver is CNAME */
int cnameaaaa; /* Nameserver is CNAME */
int seenrrsig; /* a rrsig was seen in "do" test */
......@@ -747,6 +748,12 @@ printandfree(struct summary *summary) {
return;
}
if ((summary->type == ns_t_ns) && summary->cname) {
printf("%s.: zone is a CNAME\n", summary->zone);
freesummary(summary);
return;
}
/*
* Do deferred xlink failure reports.
*/
......@@ -1803,6 +1810,7 @@ process(struct workitem *item, unsigned char *buf, int buflen) {
/* Don't follow CNAME for NS lookups. */
if (item->type == ns_t_ns && type == ns_t_cname &&
strcasecmp(item->summary->zone, name) == 0) {
item->summary->cname = 1;
item->summary->done = 1;
}
if (item->type == ns_t_a && type == ns_t_a &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment