<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 1, 2022 at 2:39 PM 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 09:21:58AM -0800, Frank Liu wrote:<br>
> On Tue, Mar 1, 2022 at 3:37 AM Geert Stappers via Dnsmasq-discuss wrote:<br>
> > 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>
> ><br>
> <br>
> 2.76 (Debian 9), 2.85 (Debian 11).<br>
<br>
<br>
Ah, I'm now beyond the ambiguty of different version of dig/nslookup.<br></blockquote><div><br></div><div>I don't think it matters with test OS or test application.</div><div>I also tried: <br></div><div>ping <a href="http://alias.dummy.example.com">alias.dummy.example.com</a> works, but ping <a href="http://alias.test.example.com">alias.test.example.com</a> gives unknown host error.</div><div>(even though both names cname to the same <a href="http://client1.test.example.com">client1.test.example.com</a> in dnsmasq).</div><div><br></div><div>I tried ping from various machines (Mac, Windows, Debian 9, Debian11) on the test network. Same result.</div><div><br></div><div>I also tried curl <a href="http://alias.test.example.com">alias.test.example.com</a> which gives: curl: (6) Could not resolve host: <a href="http://alias.test.example.com">alias.test.example.com</a></div><div>but curl <a href="http://alias.dummy.example.com">alias.dummy.example.com</a> works fine.<br></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>
<br>
> > > Is this a known issue/limitation?<br>
> ><br>
> > What is the actual question?<br>
> ><br>
> <br>
> Sorry, the question is in the email Subject. I guess it isn't clear, so I<br>
> am pasting here:<br>
> Does dnsmasq support cname within same domain?<br>
<br>
:-)<br>
<br>
I think it is more a dns-client problem as a dnsmasq problem.<br>
As in: I don't yet understand the "problem".<br></blockquote><div><br></div><div>Are you implicitly answering my question in the subject line with a "Yes" answer, because if the answer is "no", there is really no need to troubleshoot any further.</div><div><br></div>Frank<br></div></div>