Right after I’ve configured the FTP server, I wanted to be able to “name” my server and so I’ve installed a lightweight DNS server. (context: previous article)
“dnsmasq is a lightweight DNS, TFTP, PXE, router advertisement and DHCP server. It is intended to provide coupled DNS and DHCP service to a LAN.”
I’ve chosen this over the bind 9 dns server because it was very easy to setup, I almost got it right the first time.
To install and configure dnsmasq, you’d usually do the following:
|
|
And override /etc/dnsmasq.conf with this configuration:
|
|
And that’s basically it.
You can check the status of dnsmasq server by running: sudo systemctl status dnsmasq
.
To actually use the server and make your computer recognize your custom domains you need to tell your computers to use the IP of the server on which dnsmasq is installed, in my case it is 192.168.0.176.
Thank you for reading!