• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Change default mail in SOA Record

Kados21

New Pleskian
Hi all,

I would like to change the default mail (authorative contact) in SOA record. Currently, it is one defined in the Client section (http://kb.parallels.com/en/1229). When I create a new domain, I would like to have this : contact@<domain>. Is there somewhere I can simply do that ? Or where is the script which create the DNS records to directly modify it ?

Regards,
Kevin
 
Thanks for response, but I've already see this.

I want to change the default behaviour of Parralels, not change manually the email directly in the table. I project to have more than 1,000 websites and it will be boring to do this manually each time.

What do you suggest ?

Regards,
Kevin
 
You can try to use Event Manager for running special script after domain creation event. This script will update SOA record as you need.
 
OKay, thank you for your response. I've resolved my problem :

I've created a filed name "domain-dns-soa-handler.sh" with this content :
#!/bin/bash
query="UPDATE psa.dns_zone SET email='contact@$NEW_DOMAIN_NAME' WHERE name='$NEW_DOMAIN_NAME';"
/usr/bin/mysql -uLOGIN -pPASSWORD << eof
$query
eof
And I've configured a new event when the dns zone is updated to execute this script

Thank you for your time Igor.

Regards,
Kevin
 
Back
Top