notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
I started running short on disk space for the non-production FreshPorts hosts. This time, I have decided to ask for donations. See my recent blog post which points to my Patreon account.
Port details on branch 2025Q3
dnsmasq Lightweight DNS forwarder, DHCP, and TFTP server
2.91_2,1 dns on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.91_2,1Version of this port present on the latest quarterly branch.
Maintainer: mandree@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2025-09-16 09:57:07
Last Update: 2025-09-16 17:24:45
Commit Hash: aea71ee
License: GPLv2
WWW:
https://www.thekelleys.org.uk/dnsmasq/doc.html
Description:
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/PXE for network booting of diskless machines. Dnsmasq is targeted at home networks using NAT and connected to the internet via a modem, cable-modem or ADSL connection but would be a good choice for any smallish network (up to 1000 clients is known to work) where low resource use and ease of configuration are important. -- Simon Kelley
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
pkg-plist: as obtained via: make generate-plist
Expand this list (24 items)
Collapse this list.
  1. /usr/local/share/licenses/dnsmasq-2.91_2,1/catalog.mk
  2. /usr/local/share/licenses/dnsmasq-2.91_2,1/LICENSE
  3. /usr/local/share/licenses/dnsmasq-2.91_2,1/GPLv2
  4. sbin/dnsmasq
  5. @sample etc/dnsmasq.conf.sample
  6. share/dnsmasq/trust-anchors.conf
  7. share/examples/dnsmasq/dnslist/dhcp.css
  8. share/examples/dnsmasq/dnslist/dnslist.pl
  9. share/examples/dnsmasq/dnslist/dnslist.tt2
  10. share/examples/dnsmasq/dynamic-dnsmasq/dynamic-dnsmasq.pl
  11. share/locale/de/LC_MESSAGES/dnsmasq.mo
  12. share/locale/es/LC_MESSAGES/dnsmasq.mo
  13. share/locale/fi/LC_MESSAGES/dnsmasq.mo
  14. share/locale/fr/LC_MESSAGES/dnsmasq.mo
  15. share/locale/id/LC_MESSAGES/dnsmasq.mo
  16. share/locale/it/LC_MESSAGES/dnsmasq.mo
  17. share/locale/no/LC_MESSAGES/dnsmasq.mo
  18. share/locale/pl/LC_MESSAGES/dnsmasq.mo
  19. share/locale/pt_BR/LC_MESSAGES/dnsmasq.mo
  20. share/locale/ro/LC_MESSAGES/dnsmasq.mo
  21. share/man/man8/dnsmasq.8.gz
  22. @owner
  23. @group
  24. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • dnsmasq
Dependency lines:
  • dnsmasq>0:dns/dnsmasq
Conflicts:
CONFLICTS_INSTALL:
  • dnsmasq-devel
To install the port:
cd /usr/ports/dns/dnsmasq/ && make install clean
To add the package, run one of these commands:
  • pkg install dns/dnsmasq
  • pkg install dnsmasq
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: dnsmasq
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1742506571 SHA256 (dnsmasq-2.91.tar.xz) = f622682848b33677adb2b6ad08264618a2ae0a01da486a93fd8cd91186b3d153 SIZE (dnsmasq-2.91.tar.xz) = 576820

Packages (timestamps in pop-ups are UTC):
dnsmasq
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.91_1,12.91_2,12.83,12.91_1,12.91_2,1-2.82,1-
FreeBSD:13:quarterly2.91_1,12.91_2,12.89_1,12.91_1,12.91_2,12.89_1,12.89_1,12.90,1
FreeBSD:14:latest2.91_1,12.91_2,12.88,12.91_1,12.91_2,12.89_1,1-2.89_1,1
FreeBSD:14:quarterly2.91_1,12.91_2,1-2.91_1,12.91_2,12.89_1,12.89_1,12.90,1
FreeBSD:15:latest2.91_1,12.91_2,1n/a2.91_1,1n/a2.89_1,12.89_1,12.90,1
FreeBSD:15:quarterly--n/a-n/a---
FreeBSD:16:latest-2.91_1,1n/a-n/a---
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. gettext-runtime>=0.22_1 : devel/gettext-runtime
  2. msgfmt : devel/gettext-tools
  3. gmake>=4.4.1 : devel/gmake
  4. pkgconf>=1.3.0_1 : devel/pkgconf
Library dependencies:
  1. libidn2.so : dns/libidn2
  2. libgmp.so : math/gmp
  3. libnettle.so : security/nettle
  4. libintl.so : devel/gettext-runtime
There are no ports dependent upon this port

Configuration Options:
===> The following configuration options are available for dnsmasq-2.91_2,1: DBUS=off: D-Bus IPC system support DNSSEC=on: Enable DNSSEC caching and validation (needs nettle) DOCS=on: Build and/or install documentation IPSET=on: Dynamic firewall management of resolved names (needs PF) IPV6=on: IPv6 protocol support LUA=off: Support lease-change scripts written in Lua ====> Internationalization Support Level: you can only select none or one of them IDN=off: IDN: Int'l Domain Names WITHOUT full NLS NLS=on: IDN+NLS: Int'l Domain Names & National Language support ===> Use 'make config' to modify these settings
Options name:
dns_dnsmasq
USES:
compiler cpe shebangfix tar:xz gettext gmake iconv pkgconfig pkgconfig
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (5 items)
Collapse this list.
  1. http://distcache.FreeBSD.org/local-distfiles/mandree/
  2. http://distcache.eu.FreeBSD.org/local-distfiles/mandree/
  3. http://distcache.us-east.FreeBSD.org/local-distfiles/mandree/
  4. http://distcache.us-west.FreeBSD.org/local-distfiles/mandree/
  5. https://www.thekelleys.org.uk/dnsmasq/
Collapse this list.

Number of commits found: 2

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.91_2,1
16 Sep 2025 17:24:45
commit hash: aea71ee141c935a3ada8e8b94d7c58b991e428bdcommit hash: aea71ee141c935a3ada8e8b94d7c58b991e428bdcommit hash: aea71ee141c935a3ada8e8b94d7c58b991e428bdcommit hash: aea71ee141c935a3ada8e8b94d7c58b991e428bd files touched by this commit
Matthias Andree (mandree) search for other commits by this committer
dns/dnsmasq*: don't force -O2 into CFLAGS

Reported by:	diizzy@
MFH:		2025Q3

(cherry picked from commit a2ed083c8a7d265ad4ffc2acbbc12eb22e19b6a9)
2.91_2,1
16 Sep 2025 09:54:36
commit hash: 055b4d7d20799b91d4a69c757c3d710f9d25da77commit hash: 055b4d7d20799b91d4a69c757c3d710f9d25da77commit hash: 055b4d7d20799b91d4a69c757c3d710f9d25da77commit hash: 055b4d7d20799b91d4a69c757c3d710f9d25da77 files touched by this commit
Matthias Andree (mandree) search for other commits by this committer
dns/dnsmasq: harden build

MFH:		2025Q3
(cherry picked from commit 421cd1ecf286ff832c18d9c77e220fdad6f8bfb7)

Number of commits found: 2