On 07/03/2022 20:51, Frank Liu wrote:
On Mon, Mar 7, 2022 at 10:46 AM Simon Kelley <si...@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.
Well, that would work, but it doesn't really get us much further with
the original problem.
If you define client1.domain as a host-record, and alias.domian as a
cname to that, does it work?
Simon.
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss