How to Install CoreDNS on Elementary OS Latest

In this tutorial, we will guide you through the process of installing CoreDNS on the latest version of Elementary OS.

Prerequisites

Step 1: Install CoreDNS

  1. Open a terminal window by pressing Ctrl + Alt + T.

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

    sudo apt-get update
    
  3. Next, install the snapd package by running the following command:

    sudo apt-get install snapd
    
  4. Once the snapd package is installed, run the following command to install CoreDNS:

    sudo snap install coredns
    
  5. Wait for the installation process to complete.

  6. Verify that CoreDNS has been installed by running the following command:

    coredns -version
    

    This command should output the version of CoreDNS that has been installed on your system.

Congratulations! You have successfully installed CoreDNS on your Elementary OS.

Step 2: Running CoreDNS

  1. To start CoreDNS, run the following command:

    sudo systemctl start snap.coredns.coredns.service
    
  2. To enable CoreDNS to start automatically on boot, run the following command:

    sudo systemctl enable snap.coredns.coredns.service
    
  3. To test CoreDNS, you can run the following command:

    dig @localhost example.com
    

    This command should output information about the example.com domain.

Conclusion

In this tutorial, we showed you how to install and run CoreDNS on the latest version of Elementary OS. With CoreDNS installed and running, you can easily create your own DNS server and manage your domain name resolution.

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!