[Dnsmasq-discuss] CNAME.domain

Neil Darlow neil at darlow.co.uk
Wed Nov 11 17:49:32 UTC 2026


Hi,

On Wed, 2026-11-11 at 10:33 +0000, Ken Gillett via Dnsmasq-discuss
wrote:
> The domain is set and I have an A record for hostname1 and then a
> CNAME for hostname2 whose target is hostname1.
> 
> So ‘hostname1’ resolves perfectly, as does ‘hostname2’ with nslookup
> etc also reporting it to be an alias.
> 
> However, although ‘hostname1.domain’ also resolves perfectly,
> ‘hostname2.domain’ results in an NXDOMAIN response.
> 
Have you defined the CNAME record as hostname2.domain?

cname=hostname2.domain,hostname1.domain

The documentation in dnsmasq.conf also states that cname= only works
for DHCP named hosts and those in /etc/hosts.

Regards,
Neil Darlow
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20261111/6aff6aa0/attachment.htm>


More information about the Dnsmasq-discuss mailing list