- Dec 16, 2013
-
-
Jo-Philipp Wich authored
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> SVN-Revision: 39101
-
- Nov 04, 2013
-
-
Jo-Philipp Wich authored
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". SVN-Revision: 38648
-
- Oct 11, 2013
-
-
Jo-Philipp Wich authored
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> SVN-Revision: 38365
-
- Sep 23, 2013
-
-
Luka Perkov authored
Changes include: * removing unused variables * replacing spaces with tabs where appropriate * more consistency with variable declarations Signed-off-by:
Luka Perkov <luka@openwrt.org> SVN-Revision: 38142
-
- Sep 17, 2013
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 38023
-
- Jun 17, 2013
-
-
Jo-Philipp Wich authored
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] SVN-Revision: 36943
-
- May 17, 2013
-
-
Steven Barth authored
SVN-Revision: 36655
-
- May 07, 2013
-
-
Steven Barth authored
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> SVN-Revision: 36570
-
- Jan 02, 2013
-
-
Jo-Philipp Wich authored
SVN-Revision: 34971
-
- Oct 10, 2012
-
-
Felix Fietkau authored
SVN-Revision: 33688
-
- Jul 05, 2012
-
-
Jo-Philipp Wich authored
Add a config list to the 'config dnsmasq' section to specify fixed DNS addresses. For example: config dnsmasq: [snip] list address '/example.com/192.168.0.1' will result in the argument '-A /example.com/192.168.0.1' to the dnsmasq options. This configures dnsmasq to return the specified IP for any queries to '*.example.com' names. Useful for overriding lookups to a range of DNS names. [jow: "append args" -> "xappend", "-A" -> "--address"] Signed-off-by:
Jeremy Kerr <jk@ozlabs.org> SVN-Revision: 32624
-
Jo-Philipp Wich authored
-T, --local-ttl=<time> When replying with information from /etc/hosts or the DHCP leases file dnsmasq by default sets the time-to-live field to zero, meaning that the requestor should not itself cache the information. This is the correct thing to do in almost all situations. This option allows a time-to-live (in seconds) to be given for these replies. This will reduce the load on the server at the expense of clients using stale data under some circumstances. [jow: change -T to --local--ttl to conform with the other options] Signed-off-by:
Andrew Byrne <openwrt@andy.id.au> openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel SVN-Revision: 32623
-
- Jul 01, 2012
-
-
Jo-Philipp Wich authored
dnsmasq: introduce "add_local_hostname" and "add_local_domain" options - add_local_domain defaults to 1 and controls whether the local domain is written as search directive to the local resolv.conf - add_local_hostname defaults to 1 and controls whether A and PTR records are created automatically for the local hostname These change supersedes http://patchwork.openwrt.org/patch/2207/ and http://patchwork.openwrt.org/patch/2208/ SVN-Revision: 32570
-
Jo-Philipp Wich authored
This adds a new boolean option, fqdn, to the "config dnsmasq" section of /etc/config/dhcp. The default is off. When set on, it enables the dhcp-fqdn option to dnsmasq. dhcp-fqdn causes dnsmasq's DNS server to not resolve unqualifed local hostnames. The "domain" option is required when using "fqdn". Local hostnames will remain available for lookup using fully-qualified names. Signed-off-by:
Mark Mentovai <mark@moxienet.com> SVN-Revision: 32569
-
Jo-Philipp Wich authored
dnsmasq currently permits dhcp_options to be specified only in "config dhcp" sections of /etc/config/dhcp. When dnsmasq is providing DHCP service for multiple subnets and there are multiple "config dhcp" sections without "option ignore", it makes sense to allow dhcp_options that should apply globally in the "config dnsmasq" section of /etc/config/dhcp. dhcp_option is a list option. [jow: rework patch to apply after dhcp-option-force handling got introduced] Signed-off-by:
Mark Mentovai <mark@moxienet.com> SVN-Revision: 32568
-
- May 19, 2012
-
-
Jo-Philipp Wich authored
The option 'force' when set to '1' will transform a dhcp-option to dhcp-option-force instead in the config. This is useful for forcing options to be sent back to a client (even options it didn't ask for). Signed-off-by:
Philip Prindeville <philipp@redfish-solutions.com> SVN-Revision: 31816
-
Jo-Philipp Wich authored
On my network, I have a variety of machines and appliances, some of which need different configuration issues than the default options. For example: config host option name 'client' option mac '00:01:02:03:04:05' option ip '192.168.1.20' option tag 'acme' config tag acme option force '1' list dhcp_option 'option:router,192.168.1.253' list dhcp_option 'option:domain-name,acme.com' list dhcp_option 'option:domain-search,acme.com,redfish-solutions.com' which allows me to override the default router for my client's host, as well as its domain-name, and its domain-search. this causes the following config lines: dhcp-host=00:01:02:03:04:05,set:acme,192.168.1.20,client dhcp-option-force=tag:acme,option:router,192.168.1.253 dhcp-option-force=tag:acme,option:domain-name,acme.com dhcp-option-force=tag:acme,option:domain-search:acme.com,redfish-solutions.com This could be useful elsewhere, for instance, if you have an IP CCTV that you don't want to have a default-route, etc. Signed-off-by:
Philip Prindeville <philipp@redfish-solutions.com> SVN-Revision: 31815
-
Jo-Philipp Wich authored
SVN-Revision: 31814
-
- Apr 02, 2012
-
-
Jo-Philipp Wich authored
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> SVN-Revision: 31182
-
- Mar 23, 2012
-
-
Jo-Philipp Wich authored
SVN-Revision: 31058
-
Jo-Philipp Wich authored
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> SVN-Revision: 31057
-
Jo-Philipp Wich authored
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> SVN-Revision: 31056
-
- Dec 01, 2011
-
-
Jo-Philipp Wich authored
SVN-Revision: 29375
-
- Nov 07, 2011
-
-
Nicolas Thill authored
SVN-Revision: 28837
-
- Oct 20, 2011
-
-
Travis Kemen authored
SVN-Revision: 28493
-
- May 24, 2011
-
-
Jo-Philipp Wich authored
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
-
- Feb 14, 2011
-
-
Felix Fietkau authored
SVN-Revision: 25540
-
Jo-Philipp Wich authored
SVN-Revision: 25537
-
- Jan 27, 2011
-
-
Vasilis Tsiligiannis authored
SVN-Revision: 25137
-
- Jan 26, 2011
-
-
Felix Fietkau authored
'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
-
- Nov 21, 2010
-
-
Jo-Philipp Wich authored
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
-
- Oct 06, 2010
-
-
Jo-Philipp Wich authored
SVN-Revision: 23272
-
- Aug 11, 2010
-
-
Nicolas Thill authored
SVN-Revision: 22592
-
- Aug 08, 2010
-
-
Vasilis Tsiligiannis authored
SVN-Revision: 22528
-
- Aug 04, 2010
-
-
Jo-Philipp Wich authored
SVN-Revision: 22490
-
Jo-Philipp Wich authored
Allow UCI interface names in /etc/config/dhcp Signed-off-by:
Gabriel Kerneis <kerneis@pps.jussieu.fr> SVN-Revision: 22487
-
- Jul 17, 2010
-
-
Nicolas Thill authored
SVN-Revision: 22251
-
- Jul 16, 2010
-
-
Jo-Philipp Wich authored
SVN-Revision: 22222
-
- May 08, 2010
-
-
Peter Denison authored
SVN-Revision: 21400
-
- Apr 23, 2010
-
-
Jo-Philipp Wich authored
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
-