How I changed my .lk domain nameservers to Cloudflare nameservers in register.lk dashboard

Intorduction

Managing a local Sri Lankan domain feels very different from handling a standard .com address on a giant international registrar. I found that out the hard way last month when I launched a small client project on a .lk domain and wanted to route everything through Cloudflare.

I needed better caching, free SSL without constant renewal headaches, and basic protection against spam bots hammering the login page. Because the domain was registered through Register.lk, I had to point the nameservers away from the default setup and over to Cloudflare. On paper, changing nameservers takes two minutes. In practice, every registrar hides the settings behind slightly different menus, and .lk domains have their own quirks regarding propagation times and registry syncing.

This is the exact process I followed to make the switch, along with a few small snags I ran into along the way so you don’t waste an afternoon staring at a broken site.

Why I Moved Away from Default DNS

Before touching any settings, I had a clear reason for making the move. The default DNS tools inside most local hosting portals work fine if you just want to point a domain to a single shared hosting IP and forget about it. They get the job done.

However, my setup was a bit more involved. I was hosting the frontend on a separate cloud server, using Google Workspace for email, and needed fast DNS propagation whenever I tweaked a subdomain. Waiting hours for a simple TXT or CNAME record to update gets old fast. Cloudflare updates DNS records in seconds rather than hours. Plus, having their proxy sitting in front of the origin server takes a huge load off my actual hosting bandwidth.

Getting the Nameservers from Cloudflare First

You cannot change anything in your Register.lk account until you have your target addresses ready. If you put random placeholder values into a .lk domain configuration, the registry system will either reject them outright or leave your site unreachable.

Cloudflare dashboard and clicked the Add a site button on the home screen

I logged into my Cloudflare dashboard and clicked the Add a site button on the home screen. After typing in my .lk domain name and selecting the free tier at the bottom of the pricing page, Cloudflare ran a quick scan of my existing DNS records.

Pay close attention during this scan. Cloudflare usually pulls in your main A record and MX mail records automatically, but it sometimes misses custom subdomains or specific verification records. I opened my old DNS zone in a separate tab and compared every single line item before clicking continue.

Once I confirmed the records matched, Cloudflare generated two custom nameserver addresses just for my account. They looked something like lisa.ns.cloudflare.com and bob.ns.cloudflare.com. I copied both into a plain text file and left the browser tab open.

Cloudflare Nameservers

You can get any time this Cloudflare nameserver navigating the setting page.

Navigating the Register.lk Dashboard

With those two addresses sitting on my clipboard, I headed over to Register.lk and signed into the client portal. The interface uses a standard WHMCS-style layout, which is familiar if you have ever used local hosting providers, though some options are tucked inside dropdown arrows rather than big buttons.

Use custom nameservers (enter below)
  1. Once the main dashboard loaded, I looked at the top navigation bar and clicked on Domains, then selected My Domains from the drop-down list.
  2. This opened a table listing all the domains tied to my account. I found the .lk domain I wanted to modify and looked all the way to the right side of that row.
  3. Next to the green “Active” status badge, there is a small wrench icon paired with a downward arrow. Clicking that arrow opens a menu of management tools.
  4. I clicked Manage Nameservers from that list.

At first glance, the nameserver page can confuse people who are used to editing individual A records directly inside their registrar. You won’t see any IP addresses here. Instead, you get two radio buttons at the top of the form: one for using default nameservers and another for using custom nameservers.

I selected the Use custom nameservers (enter below) option.

Entering the New Values Without Typos

The form displays five text boxes labeled Nameserver 1 through Nameserver 5. You only need the first two.

I cleared out whatever default entries were sitting in Nameserver 1 and Nameserver 2, then pasted the two Cloudflare addresses I had saved earlier.

A quick tip here: check for trailing spaces at the end of the text when you copy and paste from a browser. Sometimes an invisible space triggers a validation error when you submit the form, or worse, gets saved as part of the string. I also made sure there were no https:// prefixes or trailing slashes—just the clean hostname.

I left Nameservers 3, 4, and 5 completely blank. After reading both lines twice to verify the spelling, I clicked the blue Change Nameservers button at the bottom of the screen.

The page reloaded with a green confirmation banner at the top saying the changes were saved successfully.

The Waiting Game and .lk Propagation Quirks

If you normally work with .com or .net domains, you are probably spoiled by five-minute nameserver switches. Country-code top-level domains operate differently. Updates for .lk domains pass through the central LK Domain Registry infrastructure, and local ISPs cache those records aggressively.

Right after hitting save, my site still loaded from the old server. That is completely normal. Register.lk notes that .lk nameserver updates can take anywhere up to 24 hours to propagate across the globe.

In my case, nothing seemed to happen for the first two hours. I kept refreshing the Cloudflare overview page and clicking the “Check nameservers now” button, only to get the same pending message.

Around the three-hour mark, I opened my terminal and ran a quick dig command against Google’s public DNS (8.8.8.8) to see what the outside world saw:

dig NS yourdomain.lk @8.8.8.8

Google’s resolvers had already picked up the new Cloudflare nameservers, even though my local SLT fiber connection was still caching the old records. Within another forty minutes, Cloudflare sent an automated email confirming the domain was active on their network.

Two Quick Checks After the Switch

Once Cloudflare showed the active status, I didn’t close my laptop just yet. Switching nameservers changes where traffic goes, which means security certificates can briefly hiccup if your settings don’t match.

First, I went to the SSL/TLS tab inside Cloudflare and checked the encryption mode. By default, Cloudflare sometimes sets this to “Flexible,” which can cause an infinite redirect loop if your actual web server already forces HTTPS. Since my origin server already had a valid SSL certificate installed, I switched the mode to Full (strict).

Second, I tested my email. Whenever you move DNS providers, losing incoming emails is the biggest silent risk. I sent a test message from my personal Gmail account to the .lk domain address and replied back. Both went through without bouncing, confirming that the MX records Cloudflare imported during the initial scan were working properly.

What to Do If It Gets Stuck

Occasionally, a .lk nameserver update hits a snag at the registry level and stays stuck on the old servers even after a full day. If you pass the 24-hour mark and dig or online DNS lookup tools still show your old nameservers, don’t keep resubmitting the form in Register.lk.

Resubmitting just resets the queue. Instead, open a support ticket directly through the Register.lk portal and ask them to manually resync the nameservers with the LK Domain Registry. Their support team handles these registry sync requests regularly and can usually push the update through within a short window once they look at the ticket.

Making the switch took less than ten minutes of actual hands-on work, plus a few hours of drinking coffee while the local ISPs cleared their caches. Now that everything routes through Cloudflare, updating records takes seconds, and the site loads noticeably faster for visitors both inside Sri Lanka and abroad.

Cloudflare website link: https://www.cloudflare.com/

Register LK website link: https://register.lk/

Find more domain management-related articles: Visit here

Leave a Comment