On 04/03/2020 23:13, Jean-Francois Pirus wrote: > The issue is as follows: > > A CNAME returned by a server= specified upstream server does not return > any A record to client even though DNS is setup correctly. > (A record is from a different domain, not using the server= config) > > dnsmasq server config: > server=/example.private/X.X.X.X > > On upstream server X.X.X.X DNS is setup as > servername.example.private CNAME servername.example.com. > > On server Z.Z.Z.Z DNS is setup as > servername.example.com A Y.Y.Y.Y > > > Client queries dnsmasq server for servername.example.private > ie: > dig servername.example.private > answer is > servername.example.private CNAME servername.example.com. > > Should be > servername.example.private CNAME servername.example.com. > servername.example.com A Y.Y.Y.Y > > Is there some setting I'm missing? > > Thanks. >
This runs up against a significant limitation of dnsmasq: all the parts of an answer have to come from the same source. This is mentioned in the man page for local CNAME records, where it specifies that the CNAME cannot point to a name which comes from an upstream server, which is a example of the more general principle which you've run into: a CNAME cannot point to a records which comes from a different server. Sorry, but you'll either have to solve the problem another way, or use another DNS server. Cheers, Simon. > > _______________________________________________ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss