diff options
author | Florian Fainelli <florian@openwrt.org> | 2014-05-20 05:00:28 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2014-05-20 05:00:28 +0000 |
commit | 8f526ff53067d029f42e0b887d770b28546fc0e9 (patch) | |
tree | 21da62fc3caa4820ff83cf1d22cee02a297fba72 /package/kernel/mac80211/patches/600-0027-rt2x00-rt2800lib-fix-antenna-configuration-for-RT388.patch | |
parent | 0571a1454b4a9b7c95dc429118534dac32c603e4 (diff) | |
download | upstream-8f526ff53067d029f42e0b887d770b28546fc0e9.tar.gz upstream-8f526ff53067d029f42e0b887d770b28546fc0e9.tar.bz2 upstream-8f526ff53067d029f42e0b887d770b28546fc0e9.zip |
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
Diffstat (limited to 'package/kernel/mac80211/patches/600-0027-rt2x00-rt2800lib-fix-antenna-configuration-for-RT388.patch')
0 files changed, 0 insertions, 0 deletions