Strange DNS Zone Template applied

Started by artidens, February 12, 2022, 09:24:45 AM

Previous topic - Next topic

artidens

I have created a custom zone template in /usr/local/cwpsrv/htdocs/resources/conf/dns/bind/zones/custom.tpl and activated it as the default template for new accounts. It works fine. However, if I go to DNS Functions -> List DNS Zones and select "Reload Zone" on a domain, CWP creates a new zonefile that is not based on the default.tpl or my custom.tpl. It lacks most of the A records, the SPF record is missing etc. I don't know what it is and how to edit that template?

umtu06

I learned the location of the /usr/local/cwpsrv/htdocs/resources/conf/dns/bind/zones/default.tpl file from you. I was looking for this. Thanks a lot. I don't know if this is the answer you are looking for, but the name of my file is default.tpl, not custom.tpl. Try creating default.tpl in this folder.