Commit Graph

105 Commits (44616eca491f027a7a4828d3e719177545436fee)

Author SHA1 Message Date
Jo-Philipp Wich 50b69073d6 dnsmasq: allow hostname assignment without static lease The attached patch for dnsmasq.init allows to assign a hostname to a particular mac-address. It's useful to override the client supplied hostname, especially if the client does not supply a hostname at all.
It corresponds to the following example in dnsmasq.conf.example:

	# Always set the name of the host with hardware address
	# 11:22:33:44:55:66 to be "fred"
	#dhcp-host=11:22:33:44:55:66,fred

Regards
Mathias

SVN-Revision: 26983
2011-05-24 09:12:50 +00:00
Felix Fietkau 679dbee95f dnsmasq: use -ffunction-sections, -fdata-sections and --gc-sections, saves 8k uncompressed
SVN-Revision: 25827
2011-03-02 12:47:57 +00:00
Imre Kaloz a0ee5b91fd upgrade to 2.57
SVN-Revision: 25576
2011-02-19 08:50:15 +00:00
Felix Fietkau 47310844bc dnsmasq: fix logic for creating missing files
SVN-Revision: 25540
2011-02-14 19:42:53 +00:00
Jo-Philipp Wich a8850efe9e package/dnsmasq: use service_kill in initscript
SVN-Revision: 25537
2011-02-14 17:02:48 +00:00
Vasilis Tsiligiannis e14097aca9 dnsmasq: add support for option "--dhcp-script" (thanks Bastian Bittorf)
SVN-Revision: 25137
2011-01-27 10:14:09 +00:00
Felix Fietkau 516dcae1c7 dnsmasq: Fix parameter 'limit'
'limit' is actually the number of IP addresses to serve. See the use of ipcalc.sh.
For getting the expected number of IP addresses served, we have to decrement
limit by one.

Patch from: kentarou matsuyama <matsuyama@thinktube.com>

SVN-Revision: 25100
2011-01-26 11:33:33 +00:00
Jo-Philipp Wich bd35e85116 Package dnsmasq init-file If an already running DHCP-server is found on the configured interface, the init-script refuses to start, but does not give a hint why. It took us some days to track down this behavior in our MANET, where every wifi/adhoc-node runs it own DHCP-server. Now syslog is more verbose on this.
Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 24051
2010-11-21 13:53:27 +00:00
Jo-Philipp Wich 8c33c86021 dnsmasq: remove a useless subshell invocation from the init script
SVN-Revision: 23272
2010-10-06 13:23:56 +00:00
Jo-Philipp Wich 91cb4aac9e dnsmasq: allow 127.0.0.1/8 upstream DNS responses by default, resolves issues with Netflix and other services
SVN-Revision: 23270
2010-10-06 13:10:15 +00:00
Nicolas Thill 46016457c2 package/dnsmasq: add support for bogus-nxdomain (thanks to Mickey Knox), bump release number
SVN-Revision: 22592
2010-08-11 10:37:33 +00:00
Vasilis Tsiligiannis f2ef7cc8af dnsmasq: Squelch a 'touch' error when no dhcp leases file is defined in config, thanks stsp (#7720)
SVN-Revision: 22528
2010-08-08 10:53:28 +00:00
Jo-Philipp Wich 251c93bcbf dnsmasq: add -c or --cache-size option to dnsmasq via cachesize UCI option (#7625)
SVN-Revision: 22490
2010-08-04 17:16:46 +00:00
Jo-Philipp Wich 97b10e38a8 Allow UCI interface names in /etc/config/dhcp Signed-off-by: Gabriel Kerneis <kerneis@pps.jussieu.fr>
SVN-Revision: 22487
2010-08-04 17:09:31 +00:00
Nicolas Thill 1d7a6ebc79 dnsmasq: initscript: fix bool options handling, bump release number
SVN-Revision: 22251
2010-07-17 13:36:13 +00:00
Jo-Philipp Wich 9c3244a884 dnsmasq: add and enable DNS rebind protections
SVN-Revision: 22222
2010-07-16 00:06:59 +00:00
Alexandros C. Couloumbis a9783bd1c1 package/dnsmasq: update dnsmasq to 2.55
SVN-Revision: 21871
2010-06-22 07:09:16 +00:00
Nicolas Thill e2df3ea15f package/dnsmasq: bump release number (missed from r21400)
SVN-Revision: 21523
2010-05-21 15:08:27 +00:00
Peter Denison f30b179135 Add support for SRV records to dnsmasq config parsing
SVN-Revision: 21400
2010-05-08 12:35:29 +00:00
Jo-Philipp Wich 6f5203228f dnsmasq: - when processing domain entries, append searchdomain to host entries if they are not fully qualified - create only one reverse record for address entries with multiple names
SVN-Revision: 21109
2010-04-23 13:40:50 +00:00
Jo-Philipp Wich c876279bb2 dnsmasq: don't append search domain to custom host entries
SVN-Revision: 20935
2010-04-16 19:09:05 +00:00
Jo-Philipp Wich a8e904a958 dnsmasq: allow multiple hostnames per domain section
SVN-Revision: 20656
2010-04-02 22:56:22 +00:00
Travis Kemen 0fd984fc4f fix limit
SVN-Revision: 20275
2010-03-18 15:50:05 +00:00
Travis Kemen e2f86520c5 remove +1 as it isn't needed since 16619
SVN-Revision: 20259
2010-03-18 01:39:02 +00:00
Travis Kemen 3a13fb95ab if readethers is set to true make sure /etc/ethers exists, closes #6740
SVN-Revision: 20220
2010-03-14 21:33:02 +00:00
Jo-Philipp Wich 9b8ff17f8c dnsmasq: remove redundant code introduced with r20074
SVN-Revision: 20079
2010-03-09 01:41:06 +00:00
Jo-Philipp Wich 58820edbd9 dnsmasq: allow multiple macs per static lease address (#6205)
SVN-Revision: 20074
2010-03-08 23:28:55 +00:00
Jo-Philipp Wich 4bbb272f48 dnsmasq: prevent bad command line error when a dhcp pool has ignore set and the corresponding iface has only whitespace as value
SVN-Revision: 20048
2010-03-08 03:52:04 +00:00
Vasilis Tsiligiannis 6a11bbbac9 dnsmasq: Remove deprecated HAVE_ISC_READER=1 flag (#6757)
SVN-Revision: 19942
2010-03-01 21:19:05 +00:00
Hauke Mehrtens e474081797 Update to version 2.52
Patch 103-ipv6_fix.patch is removed, because the problem the patch was fixing is now fixed in mainline.

Thank you Raphaël HUCK for your patch.
This fixes #6568.

SVN-Revision: 19392
2010-01-29 23:15:44 +00:00
Jo-Philipp Wich f40e9e8d8a dnsmasq: only write search directive if domain is actually set
SVN-Revision: 19090
2010-01-10 15:31:58 +00:00
Jo-Philipp Wich fd7889cf6f dnsmasq: add local domain as search directive to /tmp/resolv.conf
SVN-Revision: 19086
2010-01-09 21:03:48 +00:00
Jo-Philipp Wich 02d30873eb dnsmasq: Fix setting the network-id for config host sections This renames name to networkid where applicable, and re-adds the name option for hosts. Signed-off-by: Stefan Bethke <stb@lassitu.de>
SVN-Revision: 19069
2010-01-08 00:03:08 +00:00
Jo-Philipp Wich 2a83e90ceb dnsmasq: While trying to document the dhcp UCI config, I noticed that the name config option is applied wrongly when adding static addresses. Cf. the dnsmasq man page. Signed-off-by: Stefan Bethke <stb@lassitu.de>
SVN-Revision: 18934
2009-12-26 00:23:35 +00:00
Markus Wigge c05ba34ba7 new upstream release 2.51 with some fixes, see http://www.thekelleys.org.uk/dnsmasq/CHANGELOG refreshed patches for new release
SVN-Revision: 18541
2009-11-26 10:58:01 +00:00
Jo-Philipp Wich 5a485c4112 dnsmasq: Set a list of addnhosts files. e.g. list 'addnhosts' '/var/etc/hosts.olsr' list 'addnhosts' '/var/etc/hosts.olsrv6' hosts.olsr for ipv4 and hosts.olsrv6 for ipv6 addresses. Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
SVN-Revision: 18470
2009-11-22 11:52:08 +00:00
Jo-Philipp Wich 0582d1ffb7 dnsmasq: - make "name" option in "host" sections optional and append it to -G if set, allows specifying hostnames for static leases without resorting to /etc/hosts - implement "domain" sections, allows defining arbitary host names and associated ptr records from uci - bump package revision
SVN-Revision: 17897
2009-10-05 16:58:06 +00:00
Felix Fietkau 3ede844486 update dnsmasq to 2.50 (#5784)
SVN-Revision: 17711
2009-09-24 21:42:36 +00:00
Felix Fietkau 61a94268ec Add default /etc/dnsmasq.conf
dnsmasq allows adding of arbitrary SRV/PTR/TXT/CNAME records.
However, those options sometimes can not be passed as
command-line arguments due to excess length.  This patch tries to
solve this problem:

1. Provide /etc/dnsmasq.conf file with comments about adding
   SRV/PTR/TXT/CNAME records.
2. Add this file to conffiles list so it is preserver during
   backup/restore or system upgrade.

If someone needs a lot of custom records, default configuration
file can be edited.  Since manual pages and documentation is not
installed, provided comments should be enough to figure out
option syntax.

Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>

SVN-Revision: 17663
2009-09-21 13:25:11 +00:00
Felix Fietkau c067858fdf dnsmasq startup script update: add notinterface parameter
This tiny patch makes the dnsmasq init.d script listen to a parameter called "notinterface", which tells dnsmasq to not listen on a defined set of interfaces.

By default dnsmasq *always* listens on the loopback interface, even if you tell it to specifically listen on a certain other interface. Sometimes this is not desirable behaviour, so you might want to turn it off. This is useful when, for example, you want to have your own DNS server listening on the loopback interface.

Signed-off-by: Johnny Halfmoon <jhalfmoon at milksnot.com>

SVN-Revision: 17599
2009-09-16 18:15:31 +00:00
Hauke Mehrtens b5141ea359 Update to version 2.49 Fixes #5331 and #5286
SVN-Revision: 16436
2009-06-13 16:46:42 +00:00
Jo-Philipp Wich ff3c63fb61 dnsmasq: add option to specify dhcp-hostsfile (#5079)
SVN-Revision: 15747
2009-05-09 22:34:04 +00:00
Markus Wigge e85943d41a fixed dnsmasq init for "ignore" option
dnsmasq.init tried to set range options even when ignore was
set to "1". Now the functions stops processing after evaluating
the "ignore" option when the result is > 0

SVN-Revision: 15618
2009-05-05 11:00:00 +00:00
Markus Wigge 807c0426bf changed "option" to "list" for binding interfaces
SVN-Revision: 15613
2009-05-05 09:33:56 +00:00
Felix Fietkau 34939cad39 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
SVN-Revision: 15242
2009-04-17 14:09:46 +00:00
Jo-Philipp Wich d63666203c dnsmasq: add more options for interface binding (#4900)
SVN-Revision: 15172
2009-04-09 14:51:15 +00:00
Jo-Philipp Wich cd978f4531 make "name" parameter optional in dnsmasq "boot" config sections
SVN-Revision: 14557
2009-02-18 22:00:36 +00:00
Jo-Philipp Wich e86bf4c86c update dnsmasq to 2.47 (#4636, thanks florida)
SVN-Revision: 14528
2009-02-16 04:48:08 +00:00
Markus Wigge 02cc61b0e4 "-R" will not work as it needs the configured IP on the interface. Thus this option leads to the warning message: "udhcpc: bind(UDP): Cannot assign requested address"
SVN-Revision: 14408
2009-02-04 14:58:31 +00:00
Florian Fainelli 59ff6c01d8 add dnsmasq config file to the conffiles section
SVN-Revision: 14398
2009-02-03 22:27:44 +00:00