This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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
Thanks given by:


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
2 hosted domains on sentora. only 1 resolving kevwebbie 6 244 11-16-2024, 12:52 PM
Last Post: TGates
Automatic DNS Rick 1 6 ,201 05-17-2015, 01:15 AM
Last Post: Ron-e

Forum Jump:


Users browsing this thread: 3 Guest(s)