View Single Post
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