${IF-WEB}...${ELSE-WEB}...{$ENDIF-WEB} doesn't work

Hello,

i tried to setup my custom DNS zone template und i want to use the variables ${IF-WEB}, ${ELSE-WEB} and {$ENDIF-WEB}. But this doesn't work at this time. Virtualmin puts the variable names into the zone File.

Best regards, Patrick Niebeling

Status: 
Closed (fixed)

Comments

Could you paste the full template here?

Sure:

@       IN      SOA     ns4.domain.net. root.domain.net. (
                        ${CURRENT_YEAR}${CURRENT_MONTH}${CURRENT_DAY}01
                        10800
                        3600
                        604800
                        38400 )

@       IN      NS      ns4.domain.net.
@       IN      NS      ns2.domain.net.
$DOM. IN MX 5 mx4.domain.net
$DOM.  IN      A       80.69.xx.xx
${IF-WEB}
www.$DOM. IN A 80.69.xx.xx
${ELSE-WEB}
{$ENDIF-WEB}
${IF-MAIL}
mail IN A 192.168.1.1
${ENDIF-MAIL}

I see the issue .. you need to replace :

${ELSE-WEB}
{$ENDIF-WEB}

with :

${ENDIF-WEB}

Automatically closed -- issue fixed for 2 weeks with no activity.