Skip to content

From CNAME Return also an A RR when no type is defined in query #4

Description

@boyander

Hi!
I've been trying to serve a zone from redis using your plugin. This is the zone loaded in redis:

master.example.com.        IN      A       1.2.3.4
aliascn                              IN      CNAME   master

When doing a dig query i'm expecting the following response (note that i'm not specifying response type in dig)
$ dig aliascn.example.com

;; ANSWER SECTION:
aliascn.faable.com.	59	IN	CNAME	master.example.com.
master.example.com. 299	IN	A	1.2.3.4

But instead on having this response i have no data response. On other query if i define the CNAME type in dig like this:
$ dig aliascn.example.com CNAME

;; ANSWER SECTION:
aliascn.faable.com.	59	IN	CNAME	master.example.com.

This time the CNAME is answered meaning it's successfully found in redis, but there's no A resource.

As defined in:
RFC1034 Domain Concepts and Facilities sec.3.6.2. Aliases and canonical names

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions