Domain provider : IONOS
Tutorial by IONOS
- Buy a domain name
- Connect to the account of the domain provider
- Go to Domaines & SSL > new_domain_name > DNS
- 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.
- Connect to the Raspberry via SSH.
- Install python : apt install python-pip
- Install domain-connect-dyndns with python : pip install domain-connect-dyndns. If ‘pip’ does not work, try ‘pip3’ or upgrade the command.
- 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. - Copy & Past the link displayed > open the web page > copy & past the code on the terminal.
- Update all the domains : domain-connect-dyndns update --all
- 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
- Change the URL address in WordPress : Settings > General > WordPress Address and Site Address : http://new_domain_name.extension