[Dnsmasq-discuss] Does dnsmasq support cname within same domain?
Frank Liu
gfrankliu at gmail.com
Thu Mar 3 04:56:52 UTC 2022
On Wed, Mar 2, 2022 at 8:45 PM <hamish at moffatt.email> wrote:
> On 3/3/22 15:07, Frank Liu wrote:
>
>
>
> On Wed, Mar 2, 2022 at 5:46 PM <hamish at moffatt.email>
> <hamish at moffatt.email> wrote:
>
>> I have:
>>
>> dhcp-host=<mac>,192.168.42.18,[::0:18],somehostname
>>
>> cname=somealias.mydomain,somehostname
>>
>>
>> This is working fine. I have version 2.80 (on OpenWRT 19.07).
>>
>> I see one difference to yours is that the target of the cname is only a
>> hostname and not the full domain. Does it work for you if you make that
>> change?
>>
>
> dhcp-host doesn't work for me. Geoff Back earlier in the thread also
> mentioned dhcp-host not working for him either.
>
> I don't think target full or short name matters. I always use full domain
> names in target, as mentioned earlier in this thread, but I just tried
> short hostname only, but it didn't make a difference.
>
>
> Ah well I also have
>
> addn-hosts=/tmp/hosts
>
> with /tmp/hosts containing a hosts file with:
>
> 192.168.42.18 somehostname.mydomain
>
>
> This was all set up by OpenWRT. Maybe that's why it works for me but not
> you.
>
That is correct. Using target from static hosts works, but not from dhcp,
even if you use dhcp-host reservation.
It seems like a dnsmasq bug to me.
Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20220302/d3b948d6/attachment.htm>
More information about the Dnsmasq-discuss
mailing list