• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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