Automatic domains in SOA record
#6
RE: Automatic domains in SOA record
(02-16-2015, 02:09 AM)Ron-e Wrote: Is it possible to add an feature to set a standard domain name for the ns1 and postmaster SOA record as hosting admin/reseller if you want use the same nameservers on all domains for your customers?
A bit like the dns records you can set in mysql under x_dns_create?

/etc/sentora/panel/modules/dns_manager/hooks/OnDaemonRun.hook.php
PHP Code:
$line .= "@ IN SOA ns1." $DomainName ".    postmaster." $DomainName ". (" fs_filehandler::NewLine(); 



What I do is change the file

sudo nano /etc/sentora/configs/bind/zones/yourdomain.com.txt

and i change the 2nd line
PHP Code:
$TTL 10800
IN SOA ns1.yourdomain.com   postmaster.yourdomain.com. ( 


to
PHP Code:
$TTL 10800
IN SOA ns1.the_nameserver_thah_you_want.com.    postmaster.yourdomain.com. ( 

but i have to do that on each domain and dont add anything else on the DNS Manager from Control Panel because that override the change that you made
Reply


Messages In This Thread
Automatic domains in SOA record - by Ron-e - 02-16-2015, 02:09 AM
RE: Automatic domains in SOA record - by Ron-e - 04-09-2015, 12:13 AM
RE: Automatic domains in SOA record - by apinto - 04-09-2015, 12:21 AM
RE: Automatic domains in SOA record - by calleros - 11-09-2016, 01:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Automatic DNS Rick 1 7 ,097 05-17-2015, 01:15 AM
Last Post: Ron-e

Forum Jump:


Users browsing this thread: 1 Guest(s)