<div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 1, 2022 at 3:37 AM Geert Stappers via Dnsmasq-discuss <<a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk">dnsmasq-discuss@lists.thekelleys.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Mar 01, 2022 at 01:01:51AM -0800, Frank Liu wrote:<br>
> Hi,<br>
> <br>
> I am running dnsmasq for dhcp/dns of a local test domain: <a href="http://test.example.com" rel="noreferrer" target="_blank">test.example.com</a>.<br>
> Everything works fine. When a dhcp client (eg: client1) comes up, it gets<br>
> the IP from dnsmasq, and I can dig/nslookup <a href="http://client1.test.example.com" rel="noreferrer" target="_blank">client1.test.example.com</a> to get<br>
> its IP.<br>
> <br>
> When I add a cname in the same domain, eg:<br>
> cname=<a href="http://alias.test.example.com" rel="noreferrer" target="_blank">alias.test.example.com</a>,<a href="http://client1.test.example.com" rel="noreferrer" target="_blank">client1.test.example.com</a><br>
> <br>
> dig/nslookup of <a href="http://alias.test.example.com" rel="noreferrer" target="_blank">alias.test.example.com</a> only returns name<br>
> <a href="http://client1.test.example.com" rel="noreferrer" target="_blank">client1.test.example.com</a>, not the actual IP of <a href="http://client1.test.example.com" rel="noreferrer" target="_blank">client1.test.example.com</a><br>
> <br>
> It's interesting that if I add the cname for a different domain, eg:<br>
> cname=<a href="http://alias.dummy.example.com" rel="noreferrer" target="_blank">alias.dummy.example.com</a>,<a href="http://client1.test.example.com" rel="noreferrer" target="_blank">client1.test.example.com</a><br>
> <br>
> dig/nslookup of <a href="http://alias.dummy.example.com" rel="noreferrer" target="_blank">alias.dummy.example.com</a> will return both name<br>
> <a href="http://client1.test.example.com" rel="noreferrer" target="_blank">client1.test.example.com</a> and its IP.<br>
> <br>
> I tried a few different versions but that doesn't make a difference.<br>
<br>
Please name those different versions.<br></blockquote><div><br></div><div>2.76 (Debian 9),   2.85 (Debian 11).</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
> Is this a known issue/limitation?<br>
<br>
What is the actual question?<br></blockquote><div><br></div><div>Sorry, the question is in the email Subject. I guess it isn't clear, so I am pasting here:</div><div>Does dnsmasq support cname within same domain?</div><div><br></div><div> Thanks!</div><div>Frank<br></div></div></div>