[Dnsmasq-discuss] Error when declaring multiple cnames to a target in a single line

john doe johndoe65534 at mail.com
Tue Apr 17 10:13:53 BST 2018


On 4/17/2018 12:16 AM, Simon Kelley wrote:
> On 11/04/18 12:30, john doe wrote:
>> Hi,
>>
>> I can no longer declare multiple cnames in a single line with the
>> current version of Dnsmasq on Debian 9.
>>
>> The error I'm getting is:
>>
>> Apr 11 13:11:07 dnsmasq[1135]: dnsmasq: syntax check OK.
>> Apr 11 13:11:07 dnsmasq[1138]: dnsmasq: bad TTL at line 2 of
>> /etc/dnsmasq.d/try.conf
>> Apr 11 13:11:07 dnsmasq[1138]: bad TTL at line 2 of /etc/dnsmasq.d/try.conf
>>
>> Line 2 of /etc/dnsmasq.d/try.conf resemble the following:
>> cname=<CNAME1>,<CNAME2>,target
>>
>> Is this syntax deprecated or is it a regression?
>>
>> Note that this e-mail is folded by my mailer.
>>
> 
> The 2.79 release includes a fix for confusion caused by leading/trailing
> spaces in cname arguments. Is that what's biting you here?
> 

Yes, the fix inpplemented in 2.79 fixes what was biting me in 2.76.

So to summarize; between Dnsmasq 2.76 and 2.79 only one CNAME can be 
used per  target (--cname=<CNAME1>,<TARGET>).

Sorry for the noice.

P.S. Thanks for bringing the list processor back from holiday! :)

-- 
John Doe



More information about the Dnsmasq-discuss mailing list