Bind server templates corupt host files

3 posts / 0 new
Last post
#1 Wed, 11/07/2007 - 10:17
MedWheel

Bind server templates corupt host files

Hello, so after letting this problem go on longer then I wanted I think I have found out what my problem is. I use a custom BIND server template to setup extra records for any domain setup through VirtMin. Problem is, however, that these records don't fit in nicely to the host file.

The error I'm getting is this: [code:1]named[8661]: dns_master_load: /var/cache/bind/XXXXXXXX.com.hosts:17: unexpected end of line named[8661]: dns_master_load: /var/cache/bind/XXXXXXXX.com.hosts:16: unexpected end of input named[8661]: zone XXXXXXXX.com/IN: loading master file /var/cache/bind/XXXXXXXX.com.hosts: unexpected end of input[/code:1]

The template text, even though I put it in correctly with tabs, turns in to this when I hit save on the templates and what gets added to the host files. [code:1] bara.${DOM} IN A xxx.xxx.xxx.xxx ${DOM} IN MX 3 bara.${DOM}[/code:1]

So my question: How can I make Virtualmin save the right formatting for the host file so the DNS zone actually loads?

Mon, 11/12/2007 - 06:36
MedWheel

So, I'm assuming by the lack of replys that this is a bug.

Thu, 01/24/2008 - 04:35 (Reply to #2)
ChrisBlackwell

I've just found this too. I've filed a bug report.
http://www.virtualmin.com/index.php?option=com_flyspray&Itemid=82&am...

Topic locked