US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > How-To Guides


Reply
 
Thread Tools
Old 04-29-2010, 01:04 AM   #1
Junior Member
 
Join Date: Apr 2010
Posts: 2
300 is on a distinguished road
Default 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
300 is offline   Reply With Quote
Old 04-29-2010, 08:02 PM   #2
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

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.
slava is offline   Reply With Quote
Old 04-30-2010, 06:24 PM   #3
Junior Member
 
Join Date: Apr 2010
Posts: 2
300 is on a distinguished road
Default

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
300 is offline   Reply With Quote
Old 06-21-2010, 08:50 AM   #4
ISPsystem team
 
Join Date: May 2008
Posts: 21
Sergik is on a distinguished road
Default

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
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.
Sergik is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:49 PM.