- Plesk for Linux
Changing IP address as described in the article How to change the IP address of Plesk server? fails with the following error:
CONFIG_TEXT: Generating DB update script...
Traceback (most recent call last):
File "/opt/psa/bin/reconfigurator", line 512, in <module>
File "/opt/psa/bin/reconfigurator", line 504, in main
File "/opt/psa/bin/reconfigurator", line 335, in reconfigure
sqlfile, affected_domains = generateUpdateSQL(mapping)
File "/opt/psa/bin/reconfigurator", line 296, in generateUpdateSQL
ip = IPAddr(match_res['addr'])
File "/opt/psa/bin/reconfigurator", line 143, in init
raise Exception("%s: is neither ipv6 nor ipv4 address (%s)" % (addr, e))
Exception: 203: is neither ipv6 nor ipv4 address (illegal IP address string passed to inet_pton)
Incorrect configuration of SPF records. Space or tabulation is present in the IP address filed of SPF record.
Get the list of all domains having an IP address in SPF record:
# plesk db "select host,val from dns_recs where type='TXT' and val like 'v=spf1%ip%'"
Review the IP addresses from the list for space or tabulation.
Adjust incorrect records for the affected domains from Domains > example.com > DNS Settings.