Articles in this section

Unable to Edit SPF TXT Record: Variable "$input" got invalid value

kb: bug kb: fixed

Applicable to:

  • Plesk for Windows

Symptoms

  • When going to Tools and Settings > DNS Settings > DNS Template > Clicking on SPF TXT Record to Edit it, the following error is shown.

PLESK_ERROR: Variable "$input" got invalid value
{"displayVal":"v=spf1 +all"}; Field value.type of required type DnsRecordTypeEnum! was not provided.

Cause

Product issue:

  • #PPPM-13784 "When editing a TXT record in the DNS zone records template, it is no longer necessary to manually select “TXT” from the “Record type” drop-down list."
    Fixed in:

Resolution

Please consider updating your server:

Workaround

If update is not possible for some reason you may try the following

workaround

Workaround:

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

    C:\> plesk bin server_dns --add -txt "VALUE" -domain "<OPTIONAL_SUBDOMAIN>" -ttl "<OPTIONAL_TTL>"

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.