BeryJu / gravity

Fully-replicated DNS and DHCP Server with ad-blocking powered by etcd
https://gravity.beryju.io
GNU General Public License v3.0
458 stars 9 forks source link

CNAME within authoritative zone returns recursion not available #1085

Open toioiz opened 4 days ago

toioiz commented 4 days ago

Looking to use Gravity as a primary DNS Server for a bunch of airgap linux hosts, but having issues with CNAME resolution. Gravity is 100% authoritative for all records in the zone, but when pointing to gravity as a dns resolver, it fails CNAME lookups.

nslookup cname1.test.me

Server: 127.0.0.1 Address: 127.0.0.1#53

cname.test.me canonical name = cname1.test.me

Returns dig returns with Recursion not available!

But the followup A record is within an authoritative zone, so I'm not sure why recursion is needed at all.

In coreDNS you can work around this with header module: header { response set ra # set RecursionAvailable flag }

Is there a way to do this in gravity?

EDIT: Added info: Removing the memory handler allows this to work within the same zone. -type: memory

So this might be a work around for this specific use case