From CNAME Return also an A RR when no type is defined in query
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
Any ideas on that?
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