> > On Tue, Mar 01, 2022 at 01:01:51AM -0800, Frank Liu wrote:
> > > 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.
> On Tue, Mar 1, 2022 at 3:37 AM Geert Stappers via Dnsmasq-discuss wrote:
> > Please name those different versions.
On Tue, Mar 01, 2022 at 09:21:58AM -0800, Frank Liu wrote:
> 2.76 (Debian 9), 2.85 (Debian 11).
On Tue, Mar 1, 2022 at 2:39 PM Geert Stappers via Dnsmasq-discuss
<dnsmasq-discuss@lists.thekelleys.org.uk> wrote:
Ah, I'm now beyond the ambiguty of different version of dig/nslookup.
On 02.03.22 01:28, Frank Liu wrote:
I don't think it matters with test OS or test application.
it may matter,
I also tried:
ping alias.dummy.example.com works, but ping alias.test.example.com gives
unknown host error.
(even though both names cname to the same client1.test.example.com in
dnsmasq).
What do there result in?
dig alias.dummy.example.com alias.test.example.com client1.test.example.com
dig -t any alias.dummy.example.com alias.test.example.com
client1.test.example.com
I tried ping from various machines (Mac, Windows, Debian 9, Debian11) on
the test network. Same result.
I also tried curl alias.test.example.com which gives: curl: (6) Could not
resolve host: alias.test.example.com
but curl alias.dummy.example.com works fine.
ping and curl are not tools for debugging DNS problems.
> > > Is this a known issue/limitation?
> >
> > What is the actual question?
> >
>
> Sorry, the question is in the email Subject. I guess it isn't clear, so I
> am pasting here:
> Does dnsmasq support cname within same domain?
I think it is more a dns-client problem as a dnsmasq problem.
As in: I don't yet understand the "problem".
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.
there seems to be no limitation of what you asked for, however if there's a
problem, we should find it first.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
WinError #99999: Out of error messages.
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss