Change the domain name of a WordPress site with IONOS

Domain provider : IONOS
Tutorial by IONOS

  1. Buy a domain name
  2. Connect to the account of the domain provider
  3. Go to Domaines & SSL > new_domain_name > DNS
  4. Add rules of A type (work with IPv4) and if you have an IPv6 add a rule of type AAAA. The addresses can be found for the IPv4 : here and the IPv6 : here. The IP should be the public IP, not the one of the Raspberry.
  5. Connect to the Raspberry via SSH.
  6. Install python : apt install python-pip
  7. Install domain-connect-dyndns with python : pip install domain-connect-dyndns. If ‘pip’ does not work, try ‘pip3’ or upgrade the command.
  8. Setup the Dynamic DNS on the new domain name : domain-connect-dyndns setup --domain new_domain_name
    If the domain is not reachable, check on this site the dns spread.
  9. Copy & Past the link displayed > open the web page > copy & past the code on the terminal.
  10. Update all the domains : domain-connect-dyndns update --all
  11. Automate adresses : crontab -e and past */1 * * * * /usr/bin/flock -n /tmp/ipupdate.lck /usr/local/bin/domain-connect-dyndns update --all --config /root/dyndns/settings.txt
  12. Change the URL address in WordPress : Settings > General > WordPress Address and Site Address : http://new_domain_name.extension