[Dnsmasq-discuss] weird dnsmasq behaviour

Simon Kelley simon at thekelleys.org.uk
Tue Oct 15 11:36:07 BST 2013


On 15/10/13 11:32, René van Dorst wrote:
> Does this fix that the CNAME also append the domain or do I understand CNAME syntax incorrect.
>
> My example.
> # SmartPhone, HTC HD2
> dhcp-host=00:23:76:8f:14:79,192.168.10.50,"SP-HD2"
> cname="HD2","SP-HD2"
>
> I can lookup HD2 but I can't lookup HD2.EXAMPLE.COM
> As workaround I changed the cname to:
> cname="HD2.EXAMPLE.COM","SP-HD2"
>
> Now I can do both because HD2 results in NXDOMAIN so the OS does a second lookup with the domain name.
>
>

No, this doesn't affect the above at all, but the solution is to have both:

cname="HD2","SP-HD2"
cname="HD2.EXAMPLE.COM","SP-HD2"

now both HD2 and HD2.EXAMPLE.COM will work.

Cheers,

Simon.



More information about the Dnsmasq-discuss mailing list