How to Install Atomia DNS on NixOS Latest

Atomia DNS is an open-source DNS management tool that allows you to manage domains and resources in a flexible and scalable way. In this tutorial, we'll guide you through the steps to install Atomia DNS on NixOS Latest.

Prerequisites

Step 1: Install Atomia DNS

The first step is to install Atomia DNS on your NixOS Latest machine. Here's how to do it:

  1. Open your terminal and navigate to your NixOS Latest server.

  2. Run the following command to update your system's package list:

    sudo nix-channel --update
    
  3. Install Atomia DNS by running the following command:

    sudo nix-env -i atomia-dns
    

Step 2: Configure Atomia DNS

After installing Atomia DNS, the next step is to configure the tool to work with your domain name.

  1. Open the configuration file using your preferred text editor:

    sudo nano /etc/atomia/atomiadns.conf
    
  2. Edit the file so that it contains the following information:

    [general]
    systemmode = production
    
    [database]
    type = mysql
    host = localhost
    port = 3306
    username = root
    password =
    database = atomiadns
    
    [server]
    hostname = your_domain.com
    port = 53
    
    [webserver]
    hostname = your_domain.com
    port = 80
    

    Note: Be sure to replace "your_domain.com" with your actual domain name.

  3. Save and close the file.

Step 3: Start Atomia DNS

The final step is to start the Atomia DNS service. Here's how to do it:

  1. Run the following command to start the service:

    sudo systemctl start atomiadns
    
  2. Verify that the service is running by running the following command:

    sudo systemctl status atomiadns
    

    If the service is running, you should see a message indicating that it is active.

    ● atomiadns.service - Atomia DNS Server
    Loaded: loaded (/etc/systemd/system/atomiadns.service; enabled; vendor preset: enabled)
    Active: active (running) since Tue 2021-08-17 11:18:46 UTC; 37s ago
    Main PID: 126756 (perl)
    

Congratulations! You have successfully installed and configured Atomia DNS on your NixOS Latest server. You can now start using the tool to manage your domain names and resources.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!