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
2019-10-29 22:24:19 +00:00
parent 456a319775
commit 84449bf41c
4 changed files with 34 additions and 108 deletions

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)
{