Edit DNS Templates?

jdn1976

Verified User
Joined
Mar 30, 2020
Messages
101
Hello, I am a cPanel user but I want to switch to DA, because the high costs of license. Anyway, I am not found several items like for example:
Edit DNS Zone or Edit DNS Templates. Where can I find this on DA panel?

For example on my cpanel server I have this rules on Edit DNS Templates:

; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@ %nsttl% IN SOA %nameserver%. %rpemail%. (
%serial% ; serial, todays date+todays
3600 ; refresh, seconds
300 ; retry, seconds
1209600 ; expire, seconds
3600 ) ; minimum, seconds

%domain%. %nsttl% IN NS %nameserver%.
%domain%. %nsttl% IN NS %nameserver2%.
%domain%. %nsttl% IN NS %nameserver3%.
%domain%. %nsttl% IN NS %nameserver4%.

%nameserverentry%. IN A %nameservera%
%nameserverentry2%. IN A %nameservera2%
%nameserverentry3%. IN A %nameservera3%
%nameserverentry4%. IN A %nameservera4%

%domain%. IN A %ip%

localhost.%domain%. IN A 127.0.0.1

%domain%. IN MX 10 %domain%.

mail IN CNAME %domain%.
www IN CNAME %domain%.
ftp IN CNAME %domain%.
smtp IN CNAME %domain%.
pop IN CNAME %domain%.
pop3 IN CNAME %domain%.
imap IN CNAME %domain%.

%domain%. IN TXT "v=spf1 a mx ip4:%ftpip% ?all"

--------------

Where can I find or edit a template for this in order every time I create an account to apply those DNS entries?
 

apogee

Verified User
Joined
Jul 6, 2019
Messages
63
Location
Europe
Just edit /usr/local/directadmin/data/templates/custom/dns_a.conf (copy first from /usr/local/directadmin/data/templates/dns_a.conf)

I'm also switching from cPanel to DA, still in testing, here my working config:
Bash:
[root@da-dev1 ~]# cat /usr/local/directadmin/data/templates/custom/dns_a.conf
|*if IS_IPV6!="yes"|
|DOMAIN|.=|IP|
mail=|IP|
pop=|IP|
www=|IP|
ftp=|IP|
smtp=|IP|
imap=|IP|
cpanel=|IP|
webmail=|IP|
|*endif|
I'm taking over all CP DNS entrys for proxy and so on to avoid customer enquiries
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
5,287
Location
Maastricht
Edit DNS Zone or Edit DNS Templates. Where can I find this on DA panel?
You can find the Edit DNS Zone under "DNS Management" in DA under admin and under the user account.
You can change the TTL's there too as well as nameserver entry's (which can also be done via reseller)>

Indeed things like imap and pop3 (we use pop) are missing. If you want more defaults you can best use apogee's advise.
 

jdn1976

Verified User
Joined
Mar 30, 2020
Messages
101
Just edit /usr/local/directadmin/data/templates/custom/dns_a.conf (copy first from /usr/local/directadmin/data/templates/dns_a.conf)

I'm also switching from cPanel to DA, still in testing, here my working config:
Bash:
[root@da-dev1 ~]# cat /usr/local/directadmin/data/templates/custom/dns_a.conf
|*if IS_IPV6!="yes"|
|DOMAIN|.=|IP|
mail=|IP|
pop=|IP|
www=|IP|
ftp=|IP|
smtp=|IP|
imap=|IP|
cpanel=|IP|
webmail=|IP|
|*endif|
I'm taking over all CP DNS entrys for proxy and so on to avoid customer enquiries

Thanks for the tip. About this custom DNS entries that you made, only add A records.
If I want to add CNAME records while the account is create how to add this custom template?
 

jdn1976

Verified User
Joined
Mar 30, 2020
Messages
101
use dns_cname.conf
@apogee
Right the my file dns_cname.conf is blank.
For example if I want to insert the command:

imap 14400 IN CNAME mydomain.com.
this is an example how is configured in my cpanel. And I would like to leave as it is like on cpanel. What commands do I insert on dns_cname.conf for everytime I create a new domain already create those entries?
 
Top