43 lines
3.0 KiB
Plaintext
43 lines
3.0 KiB
Plaintext
<!DOCTYPE html><html><head><meta
|
|
charset="utf-8"><meta
|
|
name="viewport" content="width=device-width, initial-scale=1"><title>Clement Chiew </title>
|
|
<link rel="stylesheet" type="text/css" href="blogstyle.css">
|
|
<link rel="icon" href="data:,">
|
|
</head><body>
|
|
|
|
<p><div class="navbar">
|
|
<div><a href="../index.html">Home</a></div>
|
|
<div><a href="blog-000">Blog</a></div>
|
|
<div><a href="../files/CV.pdf">CV</a></div>
|
|
</div></p>
|
|
<hr>
|
|
|
|
<header>
|
|
<h1>Configuring Dynamic DNS Records</h1>
|
|
</header>
|
|
|
|
<p>After moving to the new place, I realized that my website kept going down every other day. This immediately struck my interest as my IP address kept changing. At first, I thought it was a trigger-happy housemate restarting the Internet connection every time the average ping deviated by a few milliseconds. After configuring my A records for like the third time, I felt it was time to investigate.</p>
|
|
|
|
<p>After a couple times of Googling, it turns out that the ISP at this new place is a smaller ISP. This ISP rotates the IP address every couple of days. So how would the laborious process of identifying my IP address, and then updating my A records be inevitable? Turns out not.</p>
|
|
|
|
<p>The solution was to use Dynamic DNS, which actively updates my A records with my registrar. To do so, I had to install ddclient on my Debian install. However, the available ddclient on Debian Stretch was rather out of date. Getting the newer version was a simple affair of adding Buster's Unstable repos, then enabling it to start during boot. But wait, isn't Debian Buster already in stable? Turns out I had already configured ddclient some time ago prior moving to this new place, a time where Buster was still brewing in Unstable. What a pleasant surprise when I fired up sources.list.d only to find that everything was already there. Thank you, past self. </p>
|
|
|
|
<h2>If ddclient was already configured, why would I still have issues with a IP address?</h2>
|
|
|
|
<p> After a bit of sleuthing, it turns out that I had to enable Dynamic DNS with my registrar, Namecheap. I had to also change my A records to what Namecheap calls A+ Dynamic DNS Records. With my A+ Dynamic DNS Records ready and ddclient's configuration double checked, I hesitantly left my server to its own devices.</p>
|
|
|
|
<p>It has been almost two weeks since that day, and everything is working fine. No downtime, no more stressful hours worrying about my server as I was stranded at work. What a relief. Well that's all I have to write for this post. Thanks for reading.</p>
|
|
|
|
<hr>
|
|
|
|
<p><div class="navbar">
|
|
<div><a href="blog-002">Prev</a></div>
|
|
<div><a href="blog-004">Next</a></div>
|
|
</div></p>
|
|
|
|
<blockquote>
|
|
“Nothing in this world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination alone are omnipotent. The slogan Press On! has solved and always will solve the problems of the human race.”
|
|
<br>
|
|
- Calvin Coolidge
|
|
</blockquote>
|