dnsmasq: fix backward compatibility with existing configs
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 4 Nov 2013 22:40:56 +0000 (22:40 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 4 Nov 2013 22:40:56 +0000 (22:40 +0000)
commit5db9587b5f5d3a64fbd5f4c4a1f74f1a4fa65177
treee20ceb08693417ba66addb650fa3f1ce626af4f1
parentd5555de5b0f65140791594ea485cd9528a58b560
dnsmasq: fix backward compatibility with existing configs

Changeset r36943 ("dnsmasq: use host-record instead of address") removed
the automatic domain expansion for config domain sections, this breaks
existing setups and alters the old behaviour in unexpected ways, therfore
restore behaviour of the current stable release.

Additionally handle fully qualified hostnames properly when setting up the
own hostrecord by stripping the local domain part form the given name
instead of unconditionally appending it, so that "example.lan" results
in "example example.lan" and not "example.lan example.lan.lan".

SVN-Revision: 38648
package/network/services/dnsmasq/Makefile
package/network/services/dnsmasq/files/dnsmasq.init