• 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

Resolved MX record google workspace by command line

Rendor9

New Pleskian
Hi. I need to add in a specific domain a MX dns priority 1 record. This cannot be achieved by the plesk web interface on onyx and obviously for a single record I will not migrate to obsidian. So I want to try with the "plesk bin server" command. What would be the exact command to do this on a domain? The record is for google workspace ASPMX.L.GOOGLE.COM, it must be priority 1.

Example:
plesk bin server_dns --set "MX,"",mail.<domain>,15;NS,"",ns.<domain>"

Would it be like this? what needs to be corrected?, is this ok to run??

plesk bin server_dns --set "MX,"",ASPMX.L.GOOGLE.COM,1;NS,"",ns.mydomain.com"

thanks!
 
this work for me:

plesk bin dns --add mysite.com -mx '' -mailexchanger ASPMX.L.GOOGLE.COM -priority 1
 
Back
Top