As you may have noticed in recent days, my domain registrar (HostFast) suspended cnx-software.com domain for what I believe are dubious reasons, meaning the site was inaccessible to the outside world and myself. I cannot do much about the latter and I’m held hostage to what the domain registrar’s will, but I was able to access my own website with my domain name after installing a DNS server through dnsmasq on my Ubuntu 20.04 laptop.
Edit: most of the steps below are actually not needed in Ubuntu 20.04, since you could just edit /etc/hosts (step 4). I’ll just leave the instructions below in case somebody needs to install dnsmasq.
Here are the steps I followed.
- Install dnsmasq
1sudo apt install dnsmasq
- This did not work at first since
systemd-resolvedis already installed, so I disabled it by following instructions on askubuntu:
123sudo systemctl stop systemd-resolvedsudo systemctl disable systemd-resolvedsudo systemctl mask systemd-resolved
- I then added name servers to /etc/dnsmasq.conf:
- and cnx-software.com IP address to /etc/hosts:
- The final step was to restart dnsmasq:
1sudo service dnsmasq restart
And… magic! I was able to access my own website again through my local DNS server.
With some websites, you could just type of IP address in the web browser, but since CNX Software is relying on WordPress, the domain name lookup needs to work for the website to render properly. At least now, I can write articles (and talk to myself!), which is a massive improvement, as I was not able to access my own website previously.
DNS is a centralized system which means anybody is at the mercy of higher powers, bad actors, and so on. I feel it is not ideal, but there’s no proper alternative to DNS right now, and becoming your own domain registrar is challenging and/or costly…
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.