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.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Your DNS can be anywhere you want it to be. For example, on one of my droplets I have several websites. Only one of the domains use DigitalOcean DNS. The other domains use DreamHost DNS.

On my home computer I have a couple of sites. One of the domains use FreeDNS. Another of the domains use DreamHost DNS.

The DNS server simply translates the domain into an IP address. As long as your DNS records have the correct IP address set, then when someone types in your domain, they will be sent to the correct IP address. You can use whatever DNS you want to do that.

At your house, you (usually) do not have a static IP, so you have to use some sort of tool that will update your current IP with the DNS server. FreeDNS has some tools available that let you update you DNS settings with whatever your current IP address is. If you use FreeDNS as your DNS server, then you can run that tool on your little raspberry as a cron, and it will tell FreeDNS anytime your IP changes…

Also, if you use FreeDNS you can set an A-record for the main domain to point to your Droplet, and another A-record to point the sub-domain to your raspberry pie.

I am sorry about the lengthy post.

This comment has been deleted