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

Frank Liu gfrankliu at gmail.com
Tue Mar 1 09:01:51 UTC 2022


Hi,

I am running dnsmasq for dhcp/dns of a local test domain: test.example.com.
Everything works fine. When a dhcp client (eg: client1) comes up, it gets
the IP from dnsmasq, and I can dig/nslookup client1.test.example.com to get
its IP.

When I add a cname in the same domain, eg:
cname=alias.test.example.com,client1.test.example.com

dig/nslookup of alias.test.example.com only returns name
client1.test.example.com, not the actual IP of client1.test.example.com

It's interesting that if I add the cname for a different domain, eg:
cname=alias.dummy.example.com,client1.test.example.com

dig/nslookup of alias.dummy.example.com will return both name
client1.test.example.com and its IP.

I tried a few different versions but that doesn't make a difference.

Is this a known issue/limitation?

Thanks!
Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20220301/f721c7ce/attachment.htm>


More information about the Dnsmasq-discuss mailing list