Dnsmasq Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Dnsmasq Installation On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

dnsmasq

Small caching DNS proxy and DHCP/TFTP server

Maintainer: Simon Kelley



Section: net

Install dnsmasq

  • Debian apt-get install dnsmasq-base Click to copy
  • Ubuntu apt-get install dnsmasq-base Click to copy
  • Alpine OS apk add dnsmasq Click to copy
  • Arch Linux pacman -S dnsmasq Click to copy
  • Kali Linux apt-get install dnsmasq-base Click to copy
  • CentOS yum install dnsmasq Click to copy
  • Fedora dnf install dnsmasq Click to copy
  • Raspbian apt-get install dnsmasq-base Click to copy
  • macOS brew install dnsmasq Click to copy

dnsmasq-base

Small caching DNS proxy and DHCP/TFTP server

This package contains the dnsmasq executable and documentation, but not the infrastructure required to run it as a system daemon. For that, install the dnsmasq package.

dnsmasq

Small caching DNS proxy and DHCP/TFTP server

Dnsmasq is a lightweight, easy to configure, DNS forwarder and DHCP server. It is designed to provide DNS and optionally, DHCP, to a small network. It can serve the names of local machines which are not in the global DNS. The DHCP server integrates with the DNS server and allows machines with DHCP-allocated addresses to appear in the DNS with names configured either in each host or in a central configuration file. Dnsmasq supports static and dynamic DHCP leases and BOOTP/TFTP for network booting of diskless machines.

dnsmasq-base-lua

Small caching DNS proxy and DHCP/TFTP server

This package contains the dnsmasq executable and documentation, but not the infrastructure required to run it as a system daemon. For that, install the dnsmasq package. This package is an alternative to dnsmasq-base which includes the LUA interpreter.

Installation of latest dnsmasq command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.