summaryrefslogtreecommitdiffstats
path: root/package/dnsmasq/files/dnsmasq.init
Commit message (Collapse)AuthorAgeFilesLines
* dnsmasq: configure dnsmasq via flat config file and not command-line argsjow2012-04-021-54/+79
| | | | | | | | | | Sometimes it's useful to compare the generated config file from UCI config with a hand-edited dnsmasq config file, especially if you're migrating to an OpenWRT router from something else (such as Astlinux). Putting the generated config makes it easier to capture and diff, etc. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31182 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] dnsmasq: add missing config_get, localize variables, bump package ↵jow2012-03-231-0/+2
| | | | | | revision git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31058 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: add mx record supportjow2012-03-231-0/+16
| | | | | | | | | | | | | | | | | Adding the following syntax support: config mxhost option domain mydomain.com option relay svr10.ironport.com option pref 50 and this will generate an MX record for mydomain.com pointing at the relay with a given preference. Redux: default the preference to 0 if absent. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31057 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: add keywords for SRV RR class/weightjow2012-03-231-2/+5
| | | | | | | | | | | | | | The SRV record also requires the class and weight fields... Currently you can overload the "port" keyword as: option port xxxx,class,weight but this is counter-intuitive. Here we fix this. Redux: make the port required. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31056 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] dnsmasq: automatically add host entry for own hostname and ptr ↵jow2011-12-011-3/+13
| | | | | | record for lan ip address git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29375 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/dnsmasq: use new service wrappernico2011-11-071-6/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28837 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add cname sectionthepeople2011-10-201-0/+14
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28493 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [PATCH] dnsmasq: allow hostname assignment without static leasejow2011-05-241-4/+3
| | | | | | | | | | | | | | | | | | 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
* dnsmasq: fix logic for creating missing filesnbd2011-02-141-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25540 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/dnsmasq: use service_kill in initscriptjow2011-02-141-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25537 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] dnsmasq: add support for option "--dhcp-script" (thanks Bastian ↵acinonyx2011-01-271-0/+1
| | | | | | Bittorf) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25137 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: Fix parameter 'limit'nbd2011-01-261-0/+1
| | | | | | | | | | '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
* [PATCH] Package dnsmasq init-filejow2010-11-211-2/+7
| | | | | | | | | | | | | | 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
* [package] dnsmasq: remove a useless subshell invocation from the init scriptjow2010-10-061-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23272 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/dnsmasq: add support for bogus-nxdomain (thanks to Mickey Knox), ↵nico2010-08-111-0/+5
| | | | | | bump release number git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22592 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] dnsmasq: Squelch a 'touch' error when no dhcp leases file is ↵acinonyx2010-08-081-1/+1
| | | | | | defined in config, thanks stsp (#7720) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22528 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] dnsmasq: add -c or --cache-size option to dnsmasq via cachesize ↵jow2010-08-041-0/+1
| | | | | | UCI option (#7625) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22490 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [PATCH] Allow UCI interface names in /etc/config/dhcpjow2010-08-041-2/+4
| | | | | | | Signed-off-by: Gabriel Kerneis <kerneis@pps.jussieu.fr> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22487 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: initscript: fix bool options handling, bump release numbernico2010-07-171-3/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22251 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] dnsmasq: add and enable DNS rebind protectionsjow2010-07-161-0/+23
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22222 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Add support for SRV records to dnsmasq config parsingnoz2010-05-081-0/+18
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21400 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] dnsmasq:jow2010-04-231-3/+11
| | | | | | | | - 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
* [package] dnsmasq: don't append search domain to custom host entriesjow2010-04-161-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20935 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] dnsmasq: allow multiple hostnames per domain sectionjow2010-04-021-4/+10
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20656 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fix limitthepeople2010-03-181-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20275 3c298f89-4303-0410-b956-a3cf2f4a3e73
* remove +1 as it isn't needed since 16619thepeople2010-03-181-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20259 3c298f89-4303-0410-b956-a3cf2f4a3e73
* if readethers is set to true make sure /etc/ethers exists, closes #6740thepeople2010-03-141-0/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20220 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] dnsmasq: remove redundant code introduced with r20074jow2010-03-091-3/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20079 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] dnsmasq: allow multiple macs per static lease address (#6205)jow2010-03-081-3/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20074 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] dnsmasq: prevent bad command line error when a dhcp pool has ↵jow2010-03-081-1/+1
| | | | | | 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
* [package] dnsmasq: only write search directive if domain is actually setjow2010-01-101-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19090 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] dnsmasq: add local domain as search directive to /tmp/resolv.confjow2010-01-091-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19086 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [PATCH] dnsmasq: Fix setting the network-id for config host sectionsjow2010-01-081-35/+37
| | | | | | | | 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
* [package] dnsmasq:jow2009-12-261-1/+1
| | | | | | | | 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
* [package] dnsmasq: Set a list of addnhosts files.jow2009-11-221-1/+5
| | | | | | | | | | | 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
* [package] dnsmasq:jow2009-10-051-4/+20
| | | | | | | | | | | - 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
* dnsmasq startup script update: add notinterface parameternbd2009-09-161-0/+5
| | | | | | | | | | 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
* [package] dnsmasq: add option to specify dhcp-hostsfile (#5079)jow2009-05-091-0/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15747 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fixed dnsmasq init for "ignore" optionmarkus2009-05-051-1/+1
| | | | | | | | | 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
* changed "option" to "list" for binding interfacesmarkus2009-05-051-1/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15613 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] dnsmasq: add more options for interface binding (#4900)jow2009-04-091-0/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15172 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] make "name" parameter optional in dnsmasq "boot" config sectionsjow2009-02-181-2/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14557 3c298f89-4303-0410-b956-a3cf2f4a3e73
* "-R" will not work as it needs the configured IP on the interface.markus2009-02-041-1/+1
| | | | | | | | | 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
* - added "server" option list to delegate specific subdomainsmarkus2009-01-271-0/+5
| | | | | | | to given upstream servers git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14232 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Ucified PXE-Boot options for dnsmasqcyrus2008-10-131-0/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12960 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dnsmasq: Use a more intelligent way of parsing dhcp-options using the new ↵cyrus2008-09-071-7/+3
| | | | | | UCI list datatype git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12547 3c298f89-4303-0410-b956-a3cf2f4a3e73
* restore the /tmp/resolv.conf symlink when stopping dnsmasqnbd2008-09-071-0/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12546 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add option to cache local queries, from sn9thepeople2008-09-021-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12485 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fixes dbus param of dnsmasq, #3818, thanks the.loekiblogic2008-07-281-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11967 3c298f89-4303-0410-b956-a3cf2f4a3e73
* This adds dhcp-boot support to dnsmasq-init:florian2008-07-051-0/+22
| | | | | | | | | | | | 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