Modified template to loop through array of nameservers.