BSD Ports

dns/dnsmasq 2.93,1 FreeBSD

Lightweight DNS forwarder, DHCP, and TFTP server

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv2
Categories
dns
Package size
405.4 KiB, 1054.6 KiB installed

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

In the other systems

SystemPortVersion
FreeBSDdns/dnsmasq2.93,1
OpenBSDnet/dnsmasq2.93
NetBSDnet/dnsmasq2.93
DragonFlydns/dnsmasq2.91_1,1
MidnightBSDdns/dnsmasq2.92,1
HardenedBSDdns/dnsmasq2.93,1
GhostBSDdns/dnsmasq2.93,1
OPNsenseopnsense/dnsmasq2.93,1

Install

Binary package:

pkg install dnsmasq

From the ports tree:

cd /usr/ports/dns/dnsmasq/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	dnsmasq>0:dns/dnsmasq

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.93,12.93,12.88,12.91_1,12.93,1
FreeBSD:14:quarterly2.93,12.93,1n/a2.91_1,12.93,1
FreeBSD:15:latest2.93,12.93,1n/a2.91_1,12.91_1,1
FreeBSD:15:quarterly2.93,12.93,1n/an/an/a
FreeBSD:16:latest2.93,12.93,1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 6

Configuration

Options name: dns_dnsmasq

OptionDefaultDescription
DBUSoffD-Bus IPC system support
DNSSEConEnable DNSSEC caching and validation (needs nettle)
DOCSoffBuild and/or install documentation
IDNoffIDN: Int'l Domain Names WITHOUT full NLS
IPSETonDynamic firewall management of resolved names (needs PF)
IPV6offIPv6 protocol support
LUAoffSupport lease-change scripts written in Lua
NLSoffIDN+NLS: Int'l Domain Names & National Language support
USES
compiler cpe shebangfix tar:xz
Service scripts
dnsmasq
Conflicts with
dnsmasq-devel

Message after installing

To enable dnsmasq, edit /usr/local/etc/dnsmasq.conf and
set dnsmasq_enable="YES" in /etc/rc.conf[.local]

Further options and actions are documented inside
/usr/local/etc/rc.d/dnsmasq


NOTE: when using dnssec, inaccurate system clocks
can cause DNS resolution to fail
because DNSSEC signatures may then not validate.


SECURITY RECOMMENDATION
~~~~~~~~~~~~~~~~~~~~~~~
It is recommended to enable the wpad-related options
at the end of the configuration file (you may need to
copy them from the example file to yours) to fix
CERT Vulnerability VU#598349.

Files

Manual pages 1
  • dnsmasq(8)
pkg-plist 18
  • sbin/dnsmasq
  • @sample etc/dnsmasq.conf.sample
  • share/dnsmasq/trust-anchors.conf
  • share/examples/dnsmasq/dnslist/dhcp.css
  • share/examples/dnsmasq/dnslist/dnslist.pl
  • share/examples/dnsmasq/dnslist/dnslist.tt2
  • share/examples/dnsmasq/dynamic-dnsmasq/dynamic-dnsmasq.pl
  • share/locale/de/LC_MESSAGES/dnsmasq.mo
  • share/locale/es/LC_MESSAGES/dnsmasq.mo
  • share/locale/fi/LC_MESSAGES/dnsmasq.mo
  • share/locale/fr/LC_MESSAGES/dnsmasq.mo
  • share/locale/id/LC_MESSAGES/dnsmasq.mo
  • share/locale/it/LC_MESSAGES/dnsmasq.mo
  • share/locale/no/LC_MESSAGES/dnsmasq.mo
  • share/locale/pl/LC_MESSAGES/dnsmasq.mo
  • share/locale/pt_BR/LC_MESSAGES/dnsmasq.mo
  • share/locale/ro/LC_MESSAGES/dnsmasq.mo
  • share/man/man8/dnsmasq.8.gz
distinfo 1
FileSizeSHA256
dnsmasq-2.93.tar.xz6427640c00d4e5c97c8306e5fb932b348b34269c9c29a0e7df0e8e82958b407092bc19
Master sites 2
  • LOCAL/mandree/
  • https://thekelleys.org.uk/dnsmasq/

Commit history 0

No commits in the history this site was built from.