Question
Desire a subdomain to point to my home IP address
I have a Wordpress site hosted on a DigitalOcean droplet. At home, I have a RaspberryPi which is running a web server. I am currently using no-ip’s service to manage a dynamic DNS address. I’d like to stop using no-ip and just have a subdomain point to my RPi’s web server.
I think what I need to do is have my RaspberryPi update an A record periodically, perhaps by using ddclient. Is there a way to do that?
For what its worth, a Raspberry Pi is just a low cost linux box, so it may be more prudent to as how to auto-update an A record with linux instead of how to do with with an RPi.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
You could possibly use FreeDns as your DNS. They have a few clients for updating dynamic IP’s: http://freedns.afraid.org/scripts/freedns.clients.php
Scroll down to the Unix clients. That looks promising.
I have never used the Unix client, but have used their DD-WRT client successfully. I use them for my home web-server, and also donate a few domains to their domain-pool.
Are you suggesting that I move the DNS away from DigitalOcean? Since I am using DigitalOcean as my main web host, I am under the impression that I must keep it with DigitalOcean.
Right now, mydomain.com will pull up my website on DigitalOcean. I want rpi.mydomain.com to pull up the website hosted on my Raspberry Pi. I can currently get to my Raspberry Pi’s website by going to rpi.no-ip.com (no-ip is a free dynamic DNS provider).
If I understand correctly, freedns will leave me in the situation I am already in. However, I do appreciate your response. Thank you.