View Full Version : ISPmanager default DNS template
Hello all,
I would like to create my own template for DNS zone files (cname records, TTLs,...etc.).
I've found http://forum.ispsystem.com/en/showthread.php?t=205&highlight=domain+zone+template but there is no domainzone.templ file on my server.
Can I get some advise on how to create my own DNS template?
TIA,
300
slava
04-29-2010, 08:02 PM
See http://en.ispdoc.com/index.php/Configuration_file_templates_(ISPmanager)
You need create a new file in the /usr/local/ispmgr/etc/ folder.
Lines from this file will be add to new zone file.
Thanx.
I have tried that, but it doesnt realy work.
My domainzone.templ content is:
www IN CNAME webs.somedomain
ftp IN CNAME ftps.somedomain
When I add a domain, the domain zone file (example.com) is like:
cat domainzone.templ >> /etc/bind/example.com
echo 'example.com. IN TXT "v=spf1 ip4:<IP> a mx ~all"' >> /etc/bind/example.com
It does not have standard TTL, SOA and other information...and TXT record is still added.
Is there some additional info about what variables can I use in domainzone.templ (or just __IP__, __NAME__)?
I have to get rid of the TXT record and add my own CNAME records...
If there is some "after new zone creation" hook, I could call my own script to set this up.
Thank you for helping me out!
Regards,
300
Sergik
06-21-2010, 08:50 AM
www and ftp presents in DefaultARecords. You should to edit ispmgr.conf and remove it first. Set DefaultARecords to something like this:
DefaultARecords mail smtp pop
Attention, no www and ftp here.
Also you should to add your SOA and TTL information to domainzone.templ.
__IP__, __NAME__ are macroses that you can use, and there are no another macros in domainzone.templ.
vBulletin® v3.8.9, Copyright ©2000-2023, vBulletin Solutions, Inc.