• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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