aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/dnsmasq
Commit message (Collapse)AuthorAgeFilesLines
* dnsmasq: Make the --dhcp-host logic easier to understandJohn Crispin2014-09-011-6/+8
| | | | | | | | | | | | | Use an if/else statement to cover the two different syntaxes. Add comments explaining what the end results should look like. This patch should not change the script's output. Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Backport of r42320 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42390 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: Fix hosts file format when MAC address is not specifiedJohn Crispin2014-09-011-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | An entry like this in /etc/config/dhcp: config 'host' option 'name' 'pc2' option 'ip' '192.168.100.56' option 'dns' '1' results in a /tmp/hosts/dhcp entry that looks like this: 192.168.100.56 .lan Obviously it should say "pc2.lan". This happens because $name is set to "" in order to support the MAC-less syntax: "--dhcp-host=lap,192.168.0.199". Fix this by reordering the operations. Also, refuse to add a DNS entry if the hostname or IP is missing. Fixes #17683 Reported-by: Kostas Papadopoulos <kpapad75@travelguide.gr> Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Backport of r42319 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42389 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: Create rDNS records for LuCI "Hostnames"John Crispin2014-09-011-6/+3
| | | | | | | | | | | | | | | LuCI creates "domain" UCI config sections, which the dnsmasq init file then, currently, translates into "address" config lines. This is not the correct usage of "address" (see r36943), and also causes rDNS records to not be created. This patches dnsmasq.init to utilize the additional hosts file introduced in r40799 for such domain names, resolving both issues. Signed-off-by: Tyler Fenby <tylerf@securecominc.com> Backport of r42318 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42388 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: fix a race condition possibly leading to lockupSteven Barth2014-08-202-1/+278
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42226 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: respect option dhcpv4 disabled in dhcp-configSteven Barth2014-08-191-0/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42218 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: use config_get_bool for dnsmasqSteven Barth2014-06-221-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41302 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: set procd respawnSteven Barth2014-06-221-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41297 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: removing nettle 3.0 support due to nettle downgradeSteven Barth2014-06-182-30/+1
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41264 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: compatibility with nettle 3.0Steven Barth2014-06-181-0/+29
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41249 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: various house-keeping updatesSteven Barth2014-06-184-17/+165
| | | | | | | | | | * Add Authoritative DNS and IPSET to full variant * Remove some bloat from IPSET support * Reintroduce "DHCP no address warning"-patch Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41246 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: add UCI DNSSEC runtime supportSteven Barth2014-06-181-0/+8
| | | | | | | | | | | | | Ship keys for the root zone and add two uci options to enable DNSSEC checks: Option 'dnssec': Activate DNSSEC validation Option 'dnsseccheckunsigned': Ensure answers without DNSSEC are in unsigned zones. Signed-off-by: Andre Heider <a.heider@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41245 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: Add a full variantSteven Barth2014-06-181-0/+26
| | | | | | | | | This variant includes support for DHCPv6 and DNSSEC. DNSSEC adds a dependency on libnettle. Signed-off-by: Andre Heider <a.heider@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41244 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: add upstream patch to build against libnettle-miniSteven Barth2014-06-181-0/+88
| | | | | | Signed-off-by: Andre Heider <a.heider@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41243 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: respect target's LDFLAGSSteven Barth2014-06-181-1/+2
| | | | | | | | Append local flags, don't overwrite. Signed-off-by: Andre Heider <a.heider@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41242 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: use COPTS for compile time optionsSteven Barth2014-06-181-4/+5
| | | | | | | | | | As documented in config.h. Doing otherwise will break dnsmasq's pkg-wrapper script to find its libs to link to. Signed-off-by: Andre Heider <a.heider@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41241 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: bump to 2.71Steven Barth2014-05-201-2/+2
| | | | | | | | | | | dnsmasq: bump to 2.71 this is a bugfix-release, see http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2014q2/008538.html Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40803 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: Allow creating static DNS entries from static lease entriesFlorian Fainelli2014-05-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40799 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: bump to 2.7.0Steven Barth2014-05-143-67/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40759 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: add dnsmasq.d config folder & improve odhcpd coexistenceSteven Barth2014-01-171-2/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39312 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: rework init procedureJo-Philipp Wich2013-12-213-11/+46
| | | | | | | | | | | - cache udhcp check results to speed up subsequent reloads - enable procd file tracking for /var/etc/dnsmasq.conf to only reload service if needed - implement reload action to only restart dnsmasq if /var/etc/dnsmasq.conf actually changed - launch dnsmasq from interface hotplug to avoid race conditions with network bringup Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39152 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: switch to /lib/functions/network.shJo-Philipp Wich2013-12-161-15/+11
| | | | | | | | | | | This commit changes the dnsmasq init script to use the interface status exposed by netifd. The old references to scan_interfaces() and (indirect) accesses to uci state variables are removed and replaced with corresponding network_*() calls. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39101 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: fix backward compatibility with existing configsJo-Philipp Wich2013-11-042-2/+5
| | | | | | | | | | | | | | 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". git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38648 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: add option broadcast to host sectionsJo-Philipp Wich2013-10-112-2/+7
| | | | | | | | | | | | | | | | | | | There are certain consumer devices which are outliers in protocol conformance. An example is Samsung bluray players, which require broadcast DHCP responses (on Ethernet only, strangely not on Wifi). By specifying: config host ... option broadcast 1 this will enable the response to be sent as an Ethernet broadcast and not as a unicast. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38365 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] fix various init scriptsLuka Perkov2013-09-231-1/+1
| | | | | | | | | | | | Changes include: * removing unused variables * replacing spaces with tabs where appropriate * more consistency with variable declarations Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38142 3c298f89-4303-0410-b956-a3cf2f4a3e73
* procd: convert various packages to procd style init.d scriptsJohn Crispin2013-09-171-17/+23
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38023 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: use host-record instead of addressJo-Philipp Wich2013-06-172-23/+35
| | | | | | | | | | | Using "--address" for individual host A records is broken, use "--host-record" instead. The following patch changes dnsmasq.init to build individual host records using "--host-record" instead of "--address". Signed-off-by: Adam Gensler <openwrt at gnslr.us> [jow: shorter description, simplified shell script code] git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36943 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: add directory for external hosts-filesSteven Barth2013-05-172-1/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36655 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add uci support for "proxy-dnssec" in dnsmasqSteven Barth2013-05-071-0/+1
| | | | | | | | This patch simply adds support for the "--proxy-dnssec" command in dnsmasq into the init file so it can be used with /etc/config/dhcp. Signed-off-by: Adam Gensler <openwrt@kristenandadam.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36570 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: update to 2.66Steven Barth2013-04-244-54/+27
| | | | | | Thanks to Christoph König for patches. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36412 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: allow dhcp host entries without mac addresses (#11928)Jo-Philipp Wich2013-01-022-4/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34971 3c298f89-4303-0410-b956-a3cf2f4a3e73
* licensing: Add licensing metadata to many packagesHamish Guthrie2012-10-191-0/+3
| | | | | | | | | | | | | | Two new variables are introduces to many packages, namely PKG_LICENSE and PKG_LICENSE_FILES - there may be more than one license applied to packages, and these are listed in the PKG_LICENSE variable and separated by spaces. All relevant license files are also added to the PKG_LICENSE_FILES variable, also space separated. The licensing metadata is put into the bin/<platform>/packages/Packages file for later parsing. A script for that is on it's way! git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33861 3c298f89-4303-0410-b956-a3cf2f4a3e73
* packages: sort network related packages into package/network/Felix Fietkau2012-10-106-0/+776
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33688 3c298f89-4303-0410-b956-a3cf2f4a3e73