SOA hostmaster email change

Develop

Verified User
Joined
Jun 9, 2016
Messages
158
Location
Istanbul, TR
Hello,

How to change SOA hostmaster email adress

SOA record The SOA record is:
Primary nameserver: ns1.domain.com
Hostmaster E-mail address: hostmaster.domain.com
Serial #: 2016012301
Refresh: 14400
Retry: 3600
Expire: 1209600 2 weeks
Default TTL: 86400

Hostmaster E-mail address: hostmaster.domain.com >>> "[email protected]" if its possible or admin.domain.com
 
You need to edit /usr/local/directadmin/data/templates/named.db

to prevent overwritten during upgrade you do this:
Code:
cp /usr/local/directadmin/data/templates/named.db /usr/local/directadmin/data/templates/custom/named.db

edit the /usr/local/directadmin/data/templates/custom/named.db file and change the email value.
don´t use @ and end with a dot, so in your example it would be: admin.domain.com.

To apply to existing domains you need to rewrite the zones for all domains through DirectAdmin.
 
After you modified DNS templates, all the existing DNS zones can be rewritten from Linux console with the commands:

Code:
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d800
 
Depends on what purpose the topic starting has. If it's a domain validation for any service then I'd guess a forwarder can be used here.
 
Back
Top