Dnsmasq

From Leo's Notes
Revision as of 23:41, 11 May 2013 by Leo (talk | contribs) (Created page with "dnsmasq is a simple DNS, DHCP, and TFTP server all built into one binary. == Usage == You can either run dnsmasq using the /etc/dnsmasq.conf configuration file, or specify t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page was last edited on 11 May 2013, at 23:41.

dnsmasq is a simple DNS, DHCP, and TFTP server all built into one binary.

Usage

You can either run dnsmasq using the /etc/dnsmasq.conf configuration file, or specify the configuration as command line arguments.

Eg:

dnsmasq --no-daemon --port=0 --log-queries --dhcp-range=192.168.192.11,192.168.192.250,1h --dhcp-option=6,192.168.192.10 --dhcp-option=3,192.168.192.10

DHCP Only Server

The DNS service in dnsmasq can be disabled by setting the port number to 0 and enabling DHCP by specifying the range.

dnsmasq --port=0 --dhcp-range=<start ip>,<end ip>,<lease time>