CoreDNS is a DNS server that was created to replace the widely used DNS server, dnsmasq. It is written in Go and can be easily customized through plugins. In this tutorial, we will guide you through the process of installing CoreDNS on Kali Linux latest.
Before we begin, make sure you have the following:
sudo apt-get update
sudo apt-get install coredns
coredns -version
By default, CoreDNS comes with a simple configuration file that only sends DNS queries to Google's public DNS servers. However, you can customize the configuration to suit your specific needs.
sudo nano /etc/coredns/Corefile
:53 {
. {
forward . 8.8.8.8
}
This configuration tells CoreDNS to forward all DNS queries to Google's public DNS server.
Save and close the configuration file by pressing CTRL+X, then Y and ENTER.
Finally, restart the CoreDNS service:
sudo systemctl restart coredns
In this tutorial, we have shown you how to install CoreDNS on Kali Linux latest and how to customize its configuration. By default, CoreDNS sends all DNS queries to Google's public DNS servers, but you can customize it to suit your needs.
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!