MH Studio

Development and tinkering

Recent Posts

  • Headlight HID Retrofit
  • Solar Monitoring With Python
  • Grid-Assisted Solar, pt. 2
  • Grid-Assisted Solar, pt. 1
  • Reverse-engineering TPMS sensors

Archives

  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • November 2015

Categories

  • gadgets
  • house
  • programming
  • tinkering
  • vehicles

Powered by Genesis

Archives for November 2015

Dynamic DNS Manager in PHP

2015-11-26 by Mitchel Leave a Comment

Have you ever wanted to implement your own dynamic DNS? Maybe you want to use a subdomain of your domain, or you just don’t want another 3rd party application running on your computer.

This is a project that’s been on my back burner for a while and I’ve finally gotten around to making it usable. I had implemented a cPanel-only version of this in the past, but it was less than ideal. Calling the cPanel API for each request was unnecessarily slow and it needed to be refactored. This time around, I created an interface for managing the DNS hosts, and I implemented a MySQL provider in addition to the cPanel provider. By using the MySQL provider as a cache of sorts for cPanel, the number of requests that actually go through to cPanel is minimized and the average response time is much shorter.

[Read more…]

Filed Under: programming