Submitted by gnilebein on Fri, 03/18/2011 - 04:33
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
Submitted by JamieCameron on Fri, 03/18/2011 - 12:38 Comment #1
Could you paste the full template here?
Submitted by gnilebein on Mon, 03/21/2011 - 08:14 Comment #2
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}
Submitted by JamieCameron on Mon, 03/21/2011 - 13:29 Comment #3
I see the issue .. you need to replace :
${ELSE-WEB}
{$ENDIF-WEB}
with :
${ENDIF-WEB}
Submitted by Issues on Mon, 04/04/2011 - 14:20 Comment #4
Automatically closed -- issue fixed for 2 weeks with no activity.