Dnsmasq is a lightweight, easy-to-use DNS server and DHCP server. Here's how to install it on Windows 11:
Before we start, make sure you have the following:
Download the installer from the dnsmasq/doc.html">dnsmasq website. Choose the latest version under "Current Releases".
Extract the ZIP file to a location of your choice, such as C:\dnsmasq
.
Open the Command Prompt or PowerShell as an administrator.
Change directory to the location where you extracted the ZIP file. For example, if you extracted it to C:\dnsmasq
, type the following command and press Enter:
cd C:\dnsmasq
Install Dnsmasq by running the following command:
dnsmasq.exe --install
You should see a message that says "Dnsmasq installed as a Windows service".
Configure Dnsmasq by creating a configuration file. You can use the default configuration file provided by Dnsmasq or create your own. To create the default configuration file, run the following command:
dnsmasq.exe --conf-file=dnsmasq.conf
This will create a configuration file named dnsmasq.conf
in the same directory as the dnsmasq.exe
file.
Start the Dnsmasq service by running the following command:
net start dnsmasq
You should see a message that says "The Dnsmasq service is starting".
Verify that Dnsmasq is running by opening a web browser and navigating to a website, such as google.com
. If everything is working correctly, you should be able to access the website.
Congratulations! You have successfully installed and configured Dnsmasq on Windows 11.
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!