openwrt/package
Florian Fainelli 8f526ff530 dnsmasq: Allow creating static DNS entries from static lease entries
DHCP entries in /etc/config/dhcp will not automatically create A or PTR
records.  Add an "option dns" directive which appends an entry to
/tmp/hosts/dhcp to facilitate forward and reverse DNS lookups.  For
instance, this item:

    config host
            option ip       '192.168.0.10'
            option mac      '00:13:57:9b:df:02'
            option name     'winpc'
            option dns      '1'

will add a corresponding entry to /tmp/hosts/dhcp:

    192.168.0.10 winpc.lan

This keeps the hostname/IP/MAC in a single place, for easy maintenance.

Related: ticket #13854 reports an regression involving missing PTR
records when using "config domain" to define static DNS entries for
individual hosts.  However, per Simon Kelley[1], the --address feature
used by "config domain" was never intended to generate DNS A records for
hosts.  It would probably be better for the reporter to apply this patch,
and then use "config host" sections instead of "config domain" sections.

[1] http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2008q4/002498.html

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 40799
2014-05-20 05:00:28 +00:00
..
base-files base-files: enable force_link for lan by default 2014-05-16 19:36:22 +00:00
boot uboot-lantiq: remove duplicate define 2014-05-19 18:55:55 +00:00
devel upgrade the Linaro binutils to 2.24-2013.12 2014-01-07 15:03:55 +00:00
firmware kernel: add staging r8188eu module (3.13) 2014-04-30 21:53:29 +00:00
kernel kernel: Enable CONFIG_SPI_SPIDEV when selecting kmod-spidev 2014-05-20 04:50:34 +00:00
libs uclient: fix uclient-fetch permissions 2014-05-09 09:46:44 +00:00
network dnsmasq: Allow creating static DNS entries from static lease entries 2014-05-20 05:00:28 +00:00
system fstools: update to the latest version, adds ubifs support and ubi/mtd fixes 2014-05-19 21:58:44 +00:00
utils ubi-utils: fix typo 2014-05-11 22:42:10 +00:00
Makefile package: ignore failed downloads with IGNORE_ERRORS 2014-05-14 15:49:22 +00:00