• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Question Server DNS template add from cli

OlgerdasB

New Pleskian
Hello,
I try to add default DNS template to plesk from CLI and has some issue with dmarc entry:

Code:
/usr/local/psa/bin/server_dns --set 'NS,,ns1.mydom.lt.;NS,,ns2.mydom.lt.;NS,,ns3.mydom.lt.;NS,,ns4.mydom.lt.;A,,<ip>;A,*,<ip>;A,mail,<ip>;MX,,mail.<domain>.,10;TXT,,v=spf1 +a +mx include:_spf.sender.mydom.lt -all;TXT,_dmarc.<domain>.,v=DMARC1; p=none;'

I ger error:
Code:
Incorrect record ' p=none'

In documentation I not found how exclude ";" symbol.
 
Last edited:
Hi OlgerdasB,

did you consider to use quotation marks?

Suggested example:
Code:
/usr/local/psa/bin/server_dns --set 'TXT,_dmarc.<domain>.,"v=DMARC1; p=none;"'
 
Hi OlgerdasB,

did you consider to use quotation marks?

Suggested example:
Code:
/usr/local/psa/bin/server_dns --set 'TXT,_dmarc.<domain>.,"v=DMARC1; p=none;"'

Hi UFHH01,
I try, result is same :/

Code:
# /usr/local/psa/bin/server_dns --set 'NS,,ns1.mydom.lt.;NS,,ns2.mydom.lt.;NS,,ns3.mydom.lt.;NS,,ns4.mydom.lt.;A,,<ip>;A,*,<ip>;A,mail,<ip>;MX,,mail.<domain>.,10;TXT,,v=spf1 +a +mx include:_spf.sender.mydom.lt -all;TXT,_dmarc.<domain>.,"v=DMARC1; p=none;"'
Incorrect record ' p=none'
 
A work around is to use --set for all except the DMARC record, and then use this:
Code:
plesk bin server_dns --add -txt "v=DMARC1; p=none;" -domain _dmarc
 
Back
Top