redis icon indicating copy to clipboard operation
redis copied to clipboard

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

Open boyander opened this issue 7 years ago • 2 comments

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

boyander avatar Oct 17 '18 15:10 boyander

Any ideas on that?

boyander avatar Oct 22 '18 18:10 boyander

I will fork the repo and continue your work. Feel free to contact me if you want to pull it back. Thanks for your great code. Feel free to clone and improve it https://github.com/boyander/redis-coredns-store

boyander avatar Nov 07 '18 14:11 boyander