1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-15 03:43:08 +02:00
Commit Graph

73 Commits

Author SHA1 Message Date
jow
a19c8df6f7 [package] dnsmasq: automatically add host entry for own hostname and ptr record for lan ip address
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29375 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-12-01 21:34:45 +00:00
nico
4097f52f4c package/dnsmasq: use new service wrapper
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28837 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-07 22:58:45 +00:00
thepeople
0f5bb7640c add cname section
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28493 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-10-20 12:12:26 +00:00
jow
2a521b9016 [PATCH] 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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26983 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-05-24 09:12:50 +00:00
nbd
15fba44a5b dnsmasq: fix logic for creating missing files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25540 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-14 19:42:53 +00:00
jow
f51d8a8dcb package/dnsmasq: use service_kill in initscript
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25537 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-14 17:02:48 +00:00
acinonyx
22020afec8 [package] dnsmasq: add support for option "--dhcp-script" (thanks Bastian Bittorf)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25137 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-27 10:14:09 +00:00
nbd
5e1086da2d 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25100 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-26 11:33:33 +00:00
jow
9e660acd6b [PATCH] 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>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24051 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-21 13:53:27 +00:00
jow
f2f016ef99 [package] dnsmasq: remove a useless subshell invocation from the init script
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23272 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-06 13:23:56 +00:00
nico
b66f4d463b package/dnsmasq: add support for bogus-nxdomain (thanks to Mickey Knox), bump release number
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22592 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-11 10:37:33 +00:00
acinonyx
d9deabc7be [package] dnsmasq: Squelch a 'touch' error when no dhcp leases file is defined in config, thanks stsp (#7720)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22528 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-08 10:53:28 +00:00
jow
07f6449545 [package] dnsmasq: add -c or --cache-size option to dnsmasq via cachesize UCI option (#7625)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22490 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-04 17:16:46 +00:00
jow
8b5fd9705c [PATCH] Allow UCI interface names in /etc/config/dhcp
Signed-off-by: Gabriel Kerneis <kerneis@pps.jussieu.fr>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22487 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-04 17:09:31 +00:00
nico
6da348ee27 dnsmasq: initscript: fix bool options handling, bump release number
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22251 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-17 13:36:13 +00:00
jow
70f06b0258 [package] dnsmasq: add and enable DNS rebind protections
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22222 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-16 00:06:59 +00:00
noz
e6d4343455 Add support for SRV records to dnsmasq config parsing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21400 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-08 12:35:29 +00:00
jow
da949dac34 [package] 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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21109 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-23 13:40:50 +00:00
jow
9563033de3 [package] dnsmasq: don't append search domain to custom host entries
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20935 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-16 19:09:05 +00:00
jow
ddaa3d81f2 [package] dnsmasq: allow multiple hostnames per domain section
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20656 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-02 22:56:22 +00:00
thepeople
78b9f1dc6f fix limit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20275 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 15:50:05 +00:00
thepeople
3243b6b119 remove +1 as it isn't needed since 16619
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20259 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 01:39:02 +00:00
thepeople
1f2f21c1d0 if readethers is set to true make sure /etc/ethers exists, closes #6740
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20220 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-14 21:33:02 +00:00
jow
1deca27073 [package] dnsmasq: remove redundant code introduced with r20074
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20079 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-09 01:41:06 +00:00
jow
c4afa41a73 [package] dnsmasq: allow multiple macs per static lease address (#6205)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20074 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-08 23:28:55 +00:00
jow
55b521b406 [package] dnsmasq: prevent bad command line error when a dhcp pool has ignore set and the corresponding iface has only whitespace as value
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20048 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-08 03:52:04 +00:00
jow
06c76b2102 [package] dnsmasq: only write search directive if domain is actually set
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19090 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-10 15:31:58 +00:00
jow
c05762dd88 [package] dnsmasq: add local domain as search directive to /tmp/resolv.conf
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19086 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-09 21:03:48 +00:00
jow
a143751bb5 [PATCH] 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>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19069 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-08 00:03:08 +00:00
jow
8494bd7c5a [package] 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>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18934 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-26 00:23:35 +00:00
jow
91312f560f [package] 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>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18470 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-22 11:52:08 +00:00
jow
ad7c749604 [package] 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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17897 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-05 16:58:06 +00:00
nbd
5949fd8b7c 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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17599 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-16 18:15:31 +00:00
jow
33def2ea04 [package] dnsmasq: add option to specify dhcp-hostsfile (#5079)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15747 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-09 22:34:04 +00:00
markus
c66b290e54 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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15618 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-05 11:00:00 +00:00
markus
1ea23f0d51 changed "option" to "list" for binding interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15613 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-05 09:33:56 +00:00
jow
43e3feff80 [package] dnsmasq: add more options for interface binding (#4900)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15172 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-09 14:51:15 +00:00
jow
64b2ab7e62 [package] make "name" parameter optional in dnsmasq "boot" config sections
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14557 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-18 22:00:36 +00:00
markus
2416808ec0 "-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"



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14408 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-04 14:58:31 +00:00
markus
85e49e4898 - added "server" option list to delegate specific subdomains
to given upstream servers


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14232 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-27 22:58:11 +00:00
cyrus
70f2d8c965 Ucified PXE-Boot options for dnsmasq
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12960 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-13 07:39:56 +00:00
cyrus
8f3994960d dnsmasq: Use a more intelligent way of parsing dhcp-options using the new UCI list datatype
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12547 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-07 20:07:55 +00:00
nbd
2c8a0b905f restore the /tmp/resolv.conf symlink when stopping dnsmasq
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12546 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-07 15:22:25 +00:00
thepeople
a47a7d1cc9 add option to cache local queries, from sn9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12485 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-02 01:37:06 +00:00
blogic
0bad7a057a fixes dbus param of dnsmasq, #3818, thanks the.loeki
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11967 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-28 07:59:40 +00:00
florian
465c4ee863 This adds dhcp-boot support to dnsmasq-init:
option name "virt0"
	option filename "pxelinux.0"
	option servername "mainframe0.dev"
	option serveraddress "9.3.2.1"

closes #3529


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11663 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-05 13:43:55 +00:00
thepeople
06cb59cd07 only ignore dhcp but still listen for dns closes #3406
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11062 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-08 00:01:58 +00:00
thepeople
6df5e6f208 create the dhcp leasefile if it doesn't exist
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10460 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-14 21:17:14 +00:00
nbd
afa5da1d1b Here comes the new UCI. Enjoy :)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10367 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-03 06:48:15 +00:00
thepeople
38ba799c0a add option configure a custom netmask for dhcp clients Signed-off-by: Lorenz Schori <lorenz.schori@gmx.ch>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10216 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-01-17 01:15:50 +00:00