I have the following configuration:
- A RPI4 at home behind my firewall with NAT enabled
- A hosted VM somewhere on the internet
I would like to have my own Dynamic DNS service that work as follow:
- A DNS entry for the domain home.foo.com redirects to my VM
- The VM intercept the query to home.foo.com and redirects it to my home IP
- Periodically my RPI4 monitors its public IP and inform the VM that the IP has changed.
Having a custom cron script that push my current home IP to a file on the VM via SSH is quite easy.
But I don’t know how to trick my VM to act as a DynDNS provider.
Any idea?