[Dnsmasq-discuss] Does dnsmasq support cname within same domain?
john doe
johndoe65534 at mail.com
Wed Mar 2 12:37:44 UTC 2022
On 3/2/2022 10:28 AM, Frank Liu wrote:
> On Tue, Mar 1, 2022 at 2:39 PM Geert Stappers via Dnsmasq-discuss <
> dnsmasq-discuss at lists.thekelleys.org.uk> wrote:
>
>> On Tue, Mar 01, 2022 at 09:21:58AM -0800, Frank Liu wrote:
>>> On Tue, Mar 1, 2022 at 3:37 AM Geert Stappers via Dnsmasq-discuss wrote:
>>>> On Tue, Mar 01, 2022 at 01:01:51AM -0800, Frank Liu wrote:
>>>>> 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.
>>>>
>>>> Please name those different versions.
>>>>
>>>
>>> 2.76 (Debian 9), 2.85 (Debian 11).
>>
>>
>> Ah, I'm now beyond the ambiguty of different version of dig/nslookup.
>>
>
> I don't think it matters with test OS or test application.
> 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).
>
> 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.
>
>
>>
>>
>>
>>>>> 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.
>
The only thing that I can say , is that, this OP is annoying
and was asked multiple times to respect the list and not to pollute it.
Personally, I ignore any trafic from 'Geert Stappers' xxx at stapper.nl.
This person is not involved in anyway what so ever with this fine
project and Simon Kelley is maintaining Dnsmasq.
--
John Doe
More information about the Dnsmasq-discuss
mailing list