DNS domains not created in given view

I have several server templates, all of which are set to "Create new domains in view": external.
However, the domains are simply appended to the end of the named.conf.local list,and as such are not placed in any view, which causes bind9 to throw a warning and then not host the domain at all. The domain config lines must then be moved into the correct view.

My named.local.conf looks like:

acl "internal" {
// some IPs
}

view "external" {
match-clients{ !localnets; any; };
recursion no;

zone "example.com" {
type master;
file "/etc/config/file/here";
};

zone "anotherexample.com" {
type master;
file "/etc/config/file/here";
};

};

view "internal" {
match-clients { "internal"; };
recursion yes;
notify no;

zone "localhost" {
type master;
file "/etc/config/file/here";
};
};

//new domains are added below everything else, here.

Status: 
Closed (fixed)