[Dnsmasq-discuss] Does dnsmasq support cname within same domain?
Frank Liu
gfrankliu at gmail.com
Mon Mar 7 20:51:25 UTC 2022
On Mon, Mar 7, 2022 at 10:46 AM Simon Kelley <simon at thekelleys.org.uk> wrote:
>
> A quick test of the current development code fails to reproduce this,
> which is puzzling.
>
>
> One thing to check: having a dhcp-host line which associates an address
> with a name is not enough to make this work: there needs to be an active
> DHCP lease in place to be able to resolve client1.test.example.com. If
> leases are coming and going, that can be enough to confuse tests.
>
>
> Do you see the same effect if you use host-record to define the address
> of client1?
Yes, host-record works.
Here is what I did as a workaround to the cname issue: add "dhcp-host"
record to do static IP reservation for "client1", and then add
"host-record" for "alias" with "client1" IP. Now I can lookup
alias.test.example.com and get the IP of client1, without the need of
cname to client1.
More information about the Dnsmasq-discuss
mailing list