[Dnsmasq-discuss] Does dnsmasq support cname within same domain?

Frank Liu gfrankliu at gmail.com
Thu Mar 3 00:49:04 UTC 2022


On Wed, Mar 2, 2022 at 3:45 PM Geoff Back <geoff at demonlair.co.uk> wrote:

> With 2.86, I have found that cname works if the target is declared in a
> "host-record" line, but not if it is DHCP assigned.  Even if it's given
> a fixed IP address in a "dhcp-host" line.
>
>
Thanks for confirming!
I assume it also works for you if you use another/different dummy domain,
with a dhcp target.

The man page https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html says
*--cname=<cname>,[<cname>,]<target>[,<TTL>]* Return a CNAME record which
indicates that <cname> is really <target>. There is a significant
limitation on the target; it must be a DNS record which is known to dnsmasq
and NOT a DNS record which comes from an upstream server.

dhcp target should work since it is known to dnsmasq. A name from a
different dummy domain cname to dhcp target confirms working. The issue
seems to be only within the same domain.

Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20220302/4aa4fe73/attachment.htm>


More information about the Dnsmasq-discuss mailing list