<html><head><style>pre,code,address {
margin: 0px;
}
h1,h2,h3,h4,h5,h6 {
margin-top: 0.2em;
margin-bottom: 0.2em;
}
ol,ul {
margin-top: 0em;
margin-bottom: 0em;
}
blockquote {
margin-top: 0em;
margin-bottom: 0em;
}
</style></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>Hi,</div><div><br></div><div>On Wed, 2026-11-11 at 10:33 +0000, Ken Gillett via Dnsmasq-discuss wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>The domain is set and I have an A record for hostname1 and then a CNAME for hostname2 whose target is hostname1.</div><div><br></div><div>So ‘hostname1’ resolves perfectly, as does ‘hostname2’ with nslookup etc also reporting it to be an alias.</div><div><br></div><div>However, although ‘hostname1.domain’ also resolves perfectly, ‘hostname2.domain’ results in an NXDOMAIN response.</div><div><br></div></blockquote><div>Have you defined the CNAME record as hostname2.domain?</div><div><br></div><div>cname=hostname2.domain,hostname1.domain</div><div><br></div><div>The documentation in dnsmasq.conf also states that cname= only works for DHCP named hosts and those in /etc/hosts.</div><div><br></div><div>Regards,</div><div>Neil Darlow</div></body></html>