openwrtv3/package
Eric Luehrsen 1b4e3eda1b dnsmasq: expand 'add_local_hostname' fexibility including FQDN
ref commit 612e2276b4
ref commit ec63e3bf13

'option add_local_hostname' scripted implementation statically assigns
this host in auto generated host file at init. If IFUP or other signals
do not occur, then address changes are not tracked. The script doesn't
apply all the addresses at an interface. This may make logs obscure.
The script only puts the bare host name (maybe not FQDN) in host file,
but if '--exapandhosts' is enabled, then /etc/hosts entries will be
suffixed, and "127.0.0.1 localhost" becomes "localhost.lan".

dnsmasq provides an option to perform this function, but it is rather
greedy. '--interface-name=<name>,<iface>' will assign the name to all
IP on the specified interface (except link local). This is a useful
feature, but some setups depend on the original restrictive behavior.

'option add_local_fqdn' is added to enhance the feature set, but
if not entered or empty string, then it will default to original
option and behavior. This new option has a few settings. At each
increased setting the most detailed name becomes the PTR record:
0 - same as add_local_hostname 0 or disabled
1 - same as add_local_hostname 1
2 - assigns the bare host name to all IP w/ --dnsmasq-interface
3 - assigns the FQDN and host to all IP w/ --dnsmasq-interface
4 - assigns <iface>.<host>.<domain> and above w/ --dnsmasq-nterface

'option add_wan_fqdn' is added to run the same procedure on
inferred WAN intefaces. If an interface has 'config dhcp' and
'option ignore 1' set, then it is considered WAN. The original
option would only run on DHCP serving interfaces.

Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
2017-02-02 00:13:49 +01:00
..
base-files base-files: emit tagged switch configuration by default 2017-02-02 00:13:49 +01:00
boot ixp4xx: put apex images into image staging directory 2017-01-27 16:53:31 +01:00
devel Revert "gdb: fix build with gcc 4.1.2 as host compiler" 2017-01-07 19:53:36 +01:00
firmware ath10k-firmware: revert faulty PKG_SOURCE_DATE change from 7cb27b46 2017-02-01 18:04:43 +01:00
kernel mt76: update to the latest version 2017-02-01 17:49:55 +01:00
libs toolchain: Broaden the executable loader pattern 2017-01-29 11:51:02 -08:00
network dnsmasq: expand 'add_local_hostname' fexibility including FQDN 2017-02-02 00:13:49 +01:00
system rpcd: Explicitly link with lcrypt 2017-01-29 11:51:02 -08:00
utils busybox: update to 1.26.2 2017-01-29 14:09:38 +01:00
Makefile Revert "build: always run package/cleanup before package/compile" 2017-01-22 13:47:40 +01:00