How to install Atomia DNS on Ubuntu Server

Atomia DNS is a powerful, open-source DNS server that is easy to use and customize. Here's how to install it on your Ubuntu Server:

Prerequisites

Before beginning, ensure that:

Step 1: Update the repositories

First, update the default Ubuntu repositories by running this command:

sudo apt-get update

Step 2: Install dependencies

Atomia DNS requires a number of dependencies to run properly. Install them by running:

sudo apt-get install libssl-dev openssl libyaml-dev libev-dev libprotobuf-c-dev protobuf-c-compiler libpcre3-dev build-essential

Step 3: Download and extract Atomia DNS

Download the latest version of Atomia DNS from the official website:

wget http://dl.atomiadns.com/snapshots/atomiadns.tar.bz2

Now, extract the downloaded archive to a directory of your choice:

tar xvf atomiadns.tar.bz2

Step 4: Compile and install Atomia DNS

To compile Atomia DNS, navigate to the directory where you extracted the files, and run:

./configure && make && sudo make install

Step 5: Configure Atomia DNS

Next, create a configuration file for Atomia DNS:

sudo nano /usr/local/etc/atomiadns/atomiadns.conf

Inside the file, specify the IP address of the DNS server and the domain name you want to use:

{
"server": {
"listen": ["0.0.0.0:53"],
"ip_address": "10.0.1.1",
"hostname": "example.com"
},
"database": {
"type": "sqlite",
"filename": "/etc/atomiadns/atomiadns.sqlite"
},
"logging": {
"level": "info"
}
}

Step 6: Start the Atomia DNS service

Start the Atomia DNS service by running:

sudo systemctl start atomiadns

Step 7: Enable the service at boot

For the Atomia DNS service to start automatically during system boot, run:

sudo systemctl enable atomiadns

Conclusion

That's it! You have successfully installed Atomia DNS on your Ubuntu Server. You can now use it as a powerful and customizable DNS server.

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!

Alternatively, for the best virtual desktop, try Shells!