04-29-2010, 01:04 AM | #1 |
Junior Member
Join Date: Apr 2010
Posts: 2
|
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/showth...+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 |
04-29-2010, 08:02 PM | #2 |
ISPsystem team
Join Date: May 2008
Location: ISPsystem
Posts: 588
|
See http://en.ispdoc.com/index.php/Confi...s_(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. |
04-30-2010, 06:24 PM | #3 |
Junior Member
Join Date: Apr 2010
Posts: 2
|
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 |
06-21-2010, 08:50 AM | #4 |
ISPsystem team
Join Date: May 2008
Posts: 21
|
www and ftp presents in DefaultARecords. You should to edit ispmgr.conf and remove it first. Set DefaultARecords to something like this:
Code:
DefaultARecords mail smtp pop 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. |
|
|