Cobra Forum

Plesk Panel => Plesk Service/Interface => Topic started by: Administrator on Dec 29, 2022, 06:18 AM

Title: Unable to Edit SPF TXT Record: Variable "$input" got invalid value
Post by: Administrator on Dec 29, 2022, 06:18 AM
Symptoms
When going to Tools and Settings > DNS Settings > DNS Template > Clicking on SPF TXT Record to Edit it, the following error is shown.
QuoteVariable "$input" got invalid value
{"displayVal":"v=spf1 +all"}; Field value.type of required type DnsRecordTypeEnum! was not provided.
Cause
This is Plesk bug #PPPM-13784,which is planned to be fixed on upcoming updates

Resolution
Workaround:

Manually Delete the SPF TXT Record from template via Tools and Settings > DNS Settings > DNS Template page
Connect to the server via RDP and open CMD as Administrator.
Create the desired record via CLI using the command below

c:/>plesk bin server_dns --add -txt "VALUE" -domain "<OPTIONAL_SUBDOMAIN>" -ttl "<OPTIONAL_TTL>"