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

Frank Liu gfrankliu at gmail.com
Thu Mar 3 18:38:12 UTC 2022


On Thu, Mar 3, 2022 at 3:52 AM Matus UHLAR - fantomas via Dnsmasq-discuss <
dnsmasq-discuss at lists.thekelleys.org.uk> wrote:

>
> this is strange, my dnsmasq.conf (2.85, debian 11) states:
>
> # Provide an alias for a "local" DNS name. Note that this _only_ works
> # for targets which are names from DHCP or /etc/hosts. Give host
> # "bert" another name, bertrand
> #cname=bertand,bert
>

Your config will work, because it is NOT from the same domain. The short
name "bertand" in your config is considered a top domain by itself, so you
can dig bertand. (ending dot), but you can't dig bertand.your.dhcp.domain.

You will see the issue if you add the same domain in the cname config, eg:
cname=bertand.your.dhcp.domain,bert

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


More information about the Dnsmasq-discuss mailing list