Generalise locally-configured CNAME handling.

It's now possible for the target of a CNAME to be any locally
configured RR or even point to a non-existent RR.
This commit is contained in:
Simon Kelley committed 2019-10-29 22:24:19 +00:00
1 parent 456a319775
commit 84449bf41c
4 files changed
+34 -108

No files matched your search

+1 -1
View File
@@ -788,7 +788,7 @@ int extract_addresses(struct dns_header *header, size_t qlen, char *name, time_t
if (newc)
{
newc->addr.cname.target.cache = NULL;
/* anything other than zero, to avoid being mistaken for CNAME to interface-name */
/* anything other than zero, to avoid being mistaken for a local CNAME */
newc->addr.cname.uid = 1;
if (cpp)
{