]>
Commit | Line | Data |
---|---|---|
333b2ceb SK |
1 | version 2.66 |
2 | Add the ability to act as an authoritative DNS | |
3 | server. Dnsmasq can now answer queries from the wider 'net | |
4 | with local data, as long as the correct NS records are set | |
5 | up. Only local data is provided, to avoid creating an open | |
6 | DNS relay. Zone transfer is supported, to allow secondary | |
7 | servers to be configured. | |
8 | ||
9 | Add "constructed DHCP ranges" for DHCPv6. This is intended | |
10 | for IPv6 routers which get prefixes dynamically via prefix | |
11 | delegation. With suitable configuration, stateful DHCPv6 | |
12 | and RA can happen automatically as prefixes are delegated | |
13 | and then deprecated, without having to re-write the | |
14 | dnsmasq configuration file or restart the daemon. Thanks to | |
15 | Steven Barth for extensive testing and development work on | |
16 | this idea. | |
71c73ac1 SK |
17 | |
18 | Fix crash on startup on Solaris 11. Regression probably | |
22ce550e SK |
19 | introduced in 2.61. Thanks to Geoff Johnstone for the |
20 | patch. | |
21 | ||
22 | Add code to make behaviour for TCP DNS requests that same | |
23 | as for UDP requests, when a request arrives for an allowed | |
24 | address, but via a banned interface. This change is only | |
25 | active on Linux, since the relevant API is missing (AFAIK) | |
26 | on other platforms. Many thanks to Tomas Hozza for | |
27 | spotting the problem, and doing invaluable discovery of | |
28 | the obscure and undocumented API required for the solution. | |
a21e27bc SK |
29 | |
30 | Don't send the default DHCP option advertising dnsmasq as | |
31 | the local DNS server if dnsmasq is configured to not act | |
32 | as DNS server, or it's configured to a non-standard port. | |
dd1721c7 SK |
33 | |
34 | Add DNSMASQ_CIRCUIT_ID, DNSMASQ_SUBCRIBER_ID, | |
35 | DNSMASQ_REMOTE_ID variables to the environment of the | |
3d77c046 | 36 | lease-change script (and the corresponding Lua). These hold |
dd1721c7 SK |
37 | information inserted into the DHCP request by a DHCP relay |
38 | agent. Thanks to Lakefield Communications for providing a | |
39 | bounty for this addition. | |
40 | ||
4038ae20 SK |
41 | Fixed crash, introduced in 2.64, whilst handling DHCPv6 |
42 | information-requests with some common configurations. | |
43 | Thanks to Robert M. Albrecht for the bug report and | |
44 | chasing the problem. | |
45 | ||
13d86c73 JD |
46 | Add --ipset option. Thanks to Jason A. Donenfeld for the |
47 | patch. | |
48 | ||
c7961075 | 49 | Don't erroneously reject some option names in --dhcp-match |
3d77c046 | 50 | options. Thanks to Benedikt Hochstrasser for the bug report. |
49333cbd SK |
51 | |
52 | Allow a trailing '*' wildcard in all interface-name | |
53 | configurations. Thanks to Christian Parpart for the patch. | |
c7961075 | 54 | |
56a1142f SK |
55 | Handle the situation where libc headers define |
56 | SO_REUSEPORT, but the kernel in use doesn't, to cope with | |
57 | the introduction of this option to Linux. Thanks to Rich | |
58 | Felker for the bug report. | |
59 | ||
cd1e04a2 | 60 | Update Polish translation. Thanks to Jan Psota. |
0b0a73c1 SK |
61 | |
62 | Fix crash if the configured DHCP lease limit is | |
63 | reached. Regression occurred in 2.61. Thanks to Tsachi for | |
64 | the bug report. | |
cd1e04a2 | 65 | |
49333cbd | 66 | |
ee86ce68 SK |
67 | version 2.65 |
68 | Fix regression which broke forwarding of queries sent via | |
69 | TCP which are not for A and AAAA and which were directed to | |
70 | non-default servers. Thanks to Niax for the bug report. | |
71 | ||
b5a8dd1d SK |
72 | Fix failure to build with DHCP support excluded. Thanks to |
73 | Gustavo Zacarias for the patch. | |
1d6c6393 SK |
74 | |
75 | Fix nasty regression in 2.64 which completely broke cacheing. | |
b5a8dd1d SK |
76 | |
77 | ||
2e34ac14 SK |
78 | version 2.64 |
79 | Handle DHCP FQDN options with all flag bits zero and | |
80 | --dhcp-client-update set. Thanks to Bernd Krumbroeck for | |
81 | spotting the problem. | |
82 | ||
12d71ed2 SK |
83 | Finesse the check for /etc/hosts names which conflict with |
84 | DHCP names. Previously a name/address pair in /etc/hosts | |
85 | which didn't match the name/address of a DHCP lease would | |
86 | generate a warning. Now that only happesn if there is not | |
87 | also a match. This allows multiple addresses for a name in | |
88 | /etc/hosts with one of them assigned via DHCP. | |
89 | ||
4d0f5b4c SK |
90 | Fix broken vendor-option processing for BOOTP. Thanks to |
91 | Hans-Joachim Baader for the bug report. | |
92 | ||
dfb23b3f SK |
93 | Don't report spurious netlink errors, regression in |
94 | 2.63. Thanks to Vladislav Grishenko for the patch. | |
95 | ||
2b127a1e SK |
96 | Flag DHCP or DHCPv6 in starup logging. Thanks to |
97 | Vladislav Grishenko for the patch. | |
98 | ||
295a54ee | 99 | Add SetServersEx method in DBus interface. Thanks to Dan |
faafb3f7 SK |
100 | Williams for the patch. |
101 | ||
295a54ee SK |
102 | Add SetDomainServers method in DBus interface. Thanks to |
103 | Roy Marples for the patch. | |
104 | ||
289a2535 SK |
105 | Fix build with later Lua libraries. Thansk to Cristian |
106 | Rodriguez for the patch. | |
2e34ac14 | 107 | |
1d860415 SK |
108 | Add --max-cache-ttl option. Thanks to Dennis Kaarsemaker |
109 | for the patch. | |
110 | ||
e4807d8b SK |
111 | Fix breakage of --host-record parsing, resulting in |
112 | infinte loop at startup. Regression in 2.63. Thanks to | |
113 | Haim Gelfenbeyn for spotting this. | |
114 | ||
2022310f SK |
115 | Set SO_REUSEADDRESS and SO_V6ONLY options on the DHCPv6 |
116 | socket, this allows multiple instances of dnsmasq on a | |
117 | single machine, in the same way as for DHCPv4. Thanks to | |
118 | Gene Czarcinski and Vladislav Grishenko for work on this. | |
119 | ||
be6cfb42 SK |
120 | Fix DHCPv6 to do access control correctly when it's |
121 | configured with --listen-address. Thanks to | |
122 | Gene Czarcinski for sorting this out. | |
123 | ||
819ff4dd SK |
124 | Add a "wildcard" dhcp-range which works for any IPv6 |
125 | subnet, --dhcp-range=::,static Useful for Stateless | |
126 | DHCPv6. Thanks to Vladislav Grishenko for the patch. | |
127 | ||
d1a5975f SK |
128 | Don't include lease-time in DHCPACK replies to DHCPINFORM |
129 | queries, since RFC-2131 says we shouldn't. Thanks to | |
130 | Wouter Ibens for pointing this out. | |
8e4b8791 SK |
131 | |
132 | Makefile tweak to do dependency checking on header files. | |
133 | Thanks to Johan Peeters for the patch. | |
d89fb4ed SK |
134 | |
135 | Check interface for outgoing unsolicited router | |
136 | advertisements, rather than relying on interface address | |
137 | configuration. Thanks to Gene Czarinski for the patch. | |
29d28dda SK |
138 | |
139 | Handle better attempts to transmit on interfaces which are | |
140 | still doing DAD, and specifically do not just transmit | |
141 | without setting source address and interface, since this | |
142 | can cause very puzzling effects when a router | |
143 | advertisement goes astray. Thanks again to Gene Czarinski. | |
144 | ||
145 | Get RA timers right when there is more than one | |
146 | dhcp-range on a subnet. | |
289a2535 | 147 | |
d1a5975f | 148 | |
078a630b SK |
149 | version 2.63 |
150 | Do duplicate dhcp-host address check in --test mode. | |
151 | ||
8b3ae2fd SK |
152 | Check that tftp-root directories are accessible before |
153 | start-up. Thanks to Daniel Veillard for the initial patch. | |
154 | ||
155 | Allow more than one --tfp-root flag. The per-interface | |
156 | stuff is pointless without that. | |
157 | ||
54dd393f SK |
158 | Add --bind-dynamic. A hybrid mode between the default and |
159 | --bind-interfaces which copes with dynamically created | |
160 | interfaces. | |
6b617c0d SK |
161 | |
162 | A couple of fixes to the build system for Android. Thanks | |
163 | to Metin Kaya for the patches. | |
54dd393f | 164 | |
8bc4cece SK |
165 | Remove the interface:<interface> argument in --dhcp-range, and |
166 | the interface argument to --enable-tftp. These were a | |
167 | still-born attempt to allow automatic isolated | |
168 | configuration by libvirt, but have never (to my knowledge) | |
169 | been used, had very strange semantics, and have been | |
170 | superceded by other mechanisms. | |
171 | ||
c4a7f90e SK |
172 | Fixed bug logging filenames when duplicate dhcp-host |
173 | addresses are found. Thanks to John Hanks for the patch. | |
174 | ||
611ebc5f SK |
175 | Fix regression in 2.61 which broke caching of CNAME |
176 | chains. Thanks to Atul Gupta for the bug report. | |
177 | ||
b271446f | 178 | Allow the target of a --cname flag to be another --cname. |
611ebc5f | 179 | |
42243214 SK |
180 | Teach DHCPv6 about the RFC 4242 information-refresh-time |
181 | option, and add parsing if the minutes, hours and days | |
182 | format for options. Thanks to Francois-Xavier Le Bail for | |
183 | the suggestion. | |
184 | ||
185 | Allow "w" (for week) as multiplier in lease times, as well | |
186 | as seconds, minutes, hours and days. Álvaro Gámez Machado | |
187 | spotted the ommission. | |
c4c0488a SK |
188 | |
189 | Update French translation. Thanks to Gildas Le Nadan. | |
42243214 | 190 | |
ad094275 SK |
191 | Allow a DBus service name to be given with --enable-dbus |
192 | which overrides the default, | |
193 | uk.org.thekelleys.dnsmasq. Thanks to Mathieu | |
194 | Trudel-Lapierre for the patch. | |
195 | ||
fd05f127 SK |
196 | Set the "prefix on-link" bit in Router |
197 | Advertisements. Thanks to Gui Iribarren for the patch. | |
198 | ||
078a630b | 199 | |
8358e0f4 SK |
200 | version 2.62 |
201 | Update German translation. Thanks to Conrad Kostecki. | |
202 | ||
f632e567 SK |
203 | Cope with router-solict packets wich don't have a valid |
204 | source address. Thanks to Vladislav Grishenko for the patch. | |
205 | ||
919dd7cf SK |
206 | Fixed bug which caused missing periodic router |
207 | advertisements with some configurations. Thanks to | |
208 | Vladislav Grishenko for the patch. | |
209 | ||
c64b7f6a SK |
210 | Fixed bug which broke DHCPv6/RA with prefix lengths |
211 | which are not divisible by 8. Thanks to Andre Coetzee | |
212 | for spotting this. | |
213 | ||
18c63eff SK |
214 | Fix non-response to router-solicitations when |
215 | router-advertisement configured, but DHCPv6 not | |
216 | configured. Thanks to Marien Zwart for the patch. | |
217 | ||
9f7f3b12 SK |
218 | Add --dns-rr, to allow arbitrary DNS resource records. |
219 | ||
5ae34bf3 SK |
220 | Fixed bug which broke RA scheduling when an interface had |
221 | two addresses in the same network. Thanks to Jim Bos for | |
222 | his help nailing this. | |
223 | ||
eabc6dd7 SK |
224 | version 2.61 |
225 | Re-write interface discovery code on *BSD to use | |
226 | getifaddrs. This is more portable, more straightforward, | |
227 | and allows us to find the prefix length for IPv6 | |
228 | addresses. | |
229 | ||
01d1b8dd SK |
230 | Add ra-names, ra-stateless and slaac keywords for DHCPv6. |
231 | Dnsmasq can now synthesise AAAA records for dual-stack | |
232 | hosts which get IPv6 addresses via SLAAC. It is also now | |
233 | possible to use SLAAC and stateless DHCPv6, and to | |
234 | tell clients to use SLAAC addresses as well as DHCP ones. | |
235 | Thanks to Dave Taht for help with this. | |
7023e382 | 236 | |
8b372704 SK |
237 | Add --dhcp-duid to allow DUID-EN uids to be used. |
238 | ||
8643ec7f SK |
239 | Explicity send DHCPv6 replies to the correct port, instead |
240 | of relying on clients to send requests with the correct | |
241 | source address, since at least one client in the wild gets | |
8358e0f4 | 242 | this wrong. Thanks to Conrad Kostecki for help tracking |
8643ec7f | 243 | this down. |
eabc6dd7 | 244 | |
8643ec7f SK |
245 | Send a preference value of 255 in DHCPv6 replies when |
246 | --dhcp-authoritative is in effect. This tells clients not | |
247 | to wait around for other DHCP servers. | |
248 | ||
249 | Better logging of DHCPv6 options. | |
250 | ||
e759d426 SK |
251 | Add --host-record. Thanks to Rob Zwissler for the |
252 | suggestion. | |
253 | ||
a9530964 SK |
254 | Invoke the DHCP script with action "tftp" when a TFTP file |
255 | transfer completes. The size of the file, address to which | |
256 | it was sent and complete pathname are supplied. Note that | |
257 | version 2.60 introduced some script incompatibilties | |
258 | associated with DHCPv6, and this is a further change. To | |
259 | be safe, scripts should ignore unknown actions, and if | |
260 | not IPv6-aware, should exit if the environment | |
261 | variable DNSMASQ_IAID is set. The use-case for this is | |
262 | to track netboot/install. Suggestion from Shantanu | |
263 | Gadgil. | |
264 | ||
265 | Update contrib/port-forward/dnsmasq-portforward to reflect | |
266 | the above. | |
267 | ||
268 | Set the environment variable DNSMASQ_LOG_DHCP when running | |
269 | the script id --log-dhcp is in effect, so that script can | |
52d4abf2 SK |
270 | taylor their logging verbosity. Suggestion from Malte |
271 | Forkel. | |
272 | ||
273 | Arrange that addresses specified with --listen-address | |
274 | work even if there is no interface carrying the | |
275 | address. This is chiefly useful for IPv4 loopback | |
276 | addresses, where any address in 127.0.0.0/8 is a valid | |
277 | loopback address, but normally only 127.0.0.1 appears on | |
278 | the lo interface. Thanks to Mathieu Trudel-Lapierre for | |
279 | the idea and initial patch. | |
a9530964 | 280 | |
7d2b5c95 SK |
281 | Fix crash, introduced in 2.60, when a DHCPINFORM is |
282 | received from a network which has no valid dhcp-range. | |
283 | Thanks to Stephane Glondu for the bug report. | |
284 | ||
c8257540 SK |
285 | Add a new DHCP lease time keyword, "deprecated" for |
286 | --dhcp-range. This is only valid for IPv6, and sets the | |
287 | preffered lease time for both DHCP and RA to zero. The | |
288 | effect is that clients can continue to use the address | |
289 | for existing connections, but new connections will use | |
290 | other addresses, if they exist. This makes hitless | |
291 | renumbering at least possible. | |
292 | ||
293 | Fix bug in address6_available() which caused DHCPv6 lease | |
8358e0f4 | 294 | aquisition to fail if more than one dhcp-range in use. |
18f0fb05 SK |
295 | |
296 | Provide RDNSS and DNSSL data in router advertisements, | |
297 | using the settings provided for DHCP options | |
298 | option6:domain-search and option6:dns-server. | |
6c559c34 SK |
299 | |
300 | Tweak logo/favicon.ico to add some transparency. Thanks to | |
301 | SamLT for work on this. | |
c8257540 | 302 | |
1023dcbc SK |
303 | Don't cache data from non-recursive nameservers, since it |
304 | may erroneously look like a valid CNAME to a non-exitant | |
305 | name. Thanks to Ben Winslow for finding this. | |
9380ba70 SK |
306 | |
307 | Call SO_BINDTODEVICE on the DHCP socket(s) when doing DHCP | |
8358e0f4 | 308 | on exactly one interface and --bind-interfaces is set. This |
9380ba70 SK |
309 | makes the OpenStack use-case of one dnsmasq per virtual |
310 | interface work. This is only available on Linux; it's not | |
311 | supported on other platforms. Thanks to Vishvananda Ishaya | |
e46164e0 SK |
312 | and the OpenStack team for the suggestion. |
313 | ||
314 | Updated French translation. Thanks to Gildas Le Nadan. | |
d1c759c5 SK |
315 | |
316 | Give correct from-cache answers to explict CNAME queries. | |
317 | Thanks to Rob Zwissler for spotting this. | |
1023dcbc | 318 | |
fc92ead0 | 319 | Add --tftp-lowercase option. Thanks to Oliver Rath for the |
61ce600b | 320 | patch. |
dcffad2a SK |
321 | |
322 | Ensure that the DBus DhcpLeaseUpdated events are generated | |
323 | when a lease goes through INIT_REBOOT state, even if the | |
8358e0f4 | 324 | dhcp-script is not in use. Thanks to Antoaneta-Ecaterina |
dcffad2a | 325 | Ene for the patch. |
19d69be2 SK |
326 | |
327 | Fix failure of TFTP over IPv4 on OpenBSD platform. Thanks | |
328 | to Brad Smith for spotting this. | |
61ce600b | 329 | |
c8257540 | 330 | |
c72daea8 SK |
331 | version 2.60 |
332 | Fix compilation problem in Mac OS X Lion. Thanks to Olaf | |
333 | Flebbe for the patch. | |
334 | ||
335 | Fix DHCP when using --listen-address with an IP address | |
336 | which is not the primary address of an interface. | |
337 | ||
338 | Add --dhcp-client-update option. | |
339 | ||
340 | Add Lua integration. Dnsmasq can now execute a DHCP | |
341 | lease-change script written in Lua. This needs to be | |
342 | enabled at compile time by setting HAVE_LUASCRIPT in | |
343 | src/config.h or running "make COPTS=-DHAVE_LUASCRIPT" | |
344 | Thanks to Jan-Piet Mens for the idea and proof-of-concept | |
345 | implementation. | |
346 | ||
347 | Tidied src/config.h to distinguish between | |
348 | platform-dependent compile-time options which are selected | |
349 | automatically, and builder-selectable compile time | |
350 | options. Document the latter better, and describe how to | |
351 | set them from the make command line. | |
352 | ||
353 | Tidied up IPPROTO_IP/SOL_IP (and IPv6 equivalent) | |
354 | confusion. IPPROTO_IP works everywhere now. | |
355 | ||
356 | Set TOS on DHCP sockets, this improves things on busy | |
357 | wireless networks. Thanks to Dave Taht for the patch. | |
358 | ||
984d2fde SK |
359 | Determine VERSION automatically based on git magic: |
360 | release tags or hash values. | |
c72daea8 | 361 | |
a2761754 SK |
362 | Improve start-up speed when reading large hosts files |
363 | containing many distinct addresses. | |
364 | ||
365 | Fix problem if dnsmasq is started without the stdin, | |
366 | stdout and stderr file descriptors open. This can manifest | |
367 | itself as 100% CPU use. Thanks to Chris Moore for finding | |
368 | this. | |
369 | ||
9bbc8876 SK |
370 | Fix shell-scripting bug in bld/pkg-wrapper. Thanks to |
371 | Mark Mitchell for the patch. | |
372 | ||
751d6f4a SK |
373 | Allow the TFP server or boot server in --pxe-service, to |
374 | be a domain name instead of an IP address. This allows for | |
375 | round-robin to multiple servers, in the same way as | |
376 | --dhcp-boot. A good suggestion from Cristiano Cumer. | |
377 | ||
fdacfb01 SK |
378 | Support BUILDDIR variable in the Makefile. Allows builds |
379 | for multiple archs from the same source tree with eg. | |
380 | make BUILDDIR=linux (relative to dnsmasq tree) | |
381 | make BUILDDIR=/tmp/openbsd (absolute path) | |
e5ffdb9c | 382 | If BUILDDIR is not set, compilation happens in the src |
b36ae194 SK |
383 | directory, as before. Suggestion from Mark Mitchell. |
384 | ||
fdacfb01 SK |
385 | Support DHCPv6. Support is there for the sort of things |
386 | the existing v4 server does, including tags, options, | |
387 | static addresses and relay support. Missing is prefix | |
388 | delegation, which is probably not required in the dnsmasq | |
389 | niche, and an easy way to accept prefix delegations from | |
390 | an upstream DHCPv6 server, which is. Future plans include | |
391 | support for DHCPv6 router option and MAC address option | |
392 | (to make selecting clients by MAC address work like IPv4). | |
393 | These will be added as the standards mature. | |
394 | This code has been tested, but this is the first release, | |
395 | so don't bet the farm on it just yet. Many thanks to all | |
396 | testers who have got it this far. | |
1adadf58 | 397 | |
ac8540c3 SK |
398 | Support IPv6 router advertisements. This is a |
399 | simple-minded implementation, aimed at providing the | |
400 | vestigial RA needed to go alongside IPv6. Is picks up | |
401 | configuration from the DHCPv6 conf, and should just need | |
402 | enabling with --enable-ra. | |
403 | ||
552af8b9 SK |
404 | Fix long-standing wrinkle with --localise-queries that |
405 | could result in wrong answers when DNS packets arrive | |
406 | via an interface other than the expected one. Thanks to | |
407 | Lorenzo Milesi and John Hanks for spotting this one. | |
71ee7ee2 SK |
408 | |
409 | Update French translation. Thanks to Gildas Le Nadan. | |
552af8b9 | 410 | |
df66e341 SK |
411 | Update Polish translation. Thanks to Jan Psota. |
412 | ||
413 | ||
74c95c25 | 414 | version 2.59 |
c72daea8 SK |
415 | Fix regression in 2.58 which caused failure to start up |
416 | with some combinations of dnsmasq config and IPv6 kernel | |
417 | network config. Thanks to Brielle Bruns for the bug | |
418 | report. | |
419 | ||
420 | Improve dnsmasq's behaviour when network interfaces are | |
421 | still doing duplicate address detection (DAD). Previously, | |
422 | dnsmasq would wait up to 20 seconds at start-up for the | |
423 | DAD state to terminate. This is broken for bridge | |
424 | interfaces on recent Linux kernels, which don't start DAD | |
425 | until the bridge comes up, and so can take arbitrary | |
426 | time. The new behaviour lets dnsmasq poll for an arbitrary | |
427 | time whilst providing service on other interfaces. Thanks | |
428 | to Stephen Hemminger for pointing out the problem. | |
74c95c25 SK |
429 | |
430 | ||
7de060b0 SK |
431 | version 2.58 |
432 | Provide a definition of the SA_SIZE macro where it's | |
433 | missing. Fixes build failure on openBSD. | |
434 | ||
435 | Don't include a zero terminator at the end of messages | |
436 | sent to /dev/log when /dev/log is a datagram socket. | |
437 | Thanks to Didier Rabound for spotting the problem. | |
438 | ||
439 | Add --dhcp-sequential-ip flag, to force allocation of IP | |
440 | addresses in ascending order. Note that the default | |
441 | pseudo-random mode is in general better but some | |
442 | server-deployment applications need this. | |
443 | ||
444 | Fix problem where a server-id of 0.0.0.0 is sent to a | |
445 | client when a dhcp-relay is in use if a client renews a | |
446 | lease after dnsmasq restart and before any clients on the | |
447 | subnet get a new lease. Thanks to Mike Ruiz for assistance | |
448 | in chasing this one down. | |
449 | ||
450 | Don't return NXDOMAIN to an AAAA query if we have CNAME | |
451 | which points to an A record only: NODATA is the correct | |
452 | reply in this case. Thanks to Tom Fernandes for spotting | |
453 | the problem. | |
454 | ||
455 | Relax the need to supply a netmask in --dhcp-range for | |
456 | networks which use a DHCP relay. Whilst this is still | |
457 | desireable, in the absence of a netmask dnsmasq will use | |
458 | a default based on the class (A, B, or C) of the address. | |
459 | This should at least remove a cause of mysterious failure | |
460 | for people using RFC1918 addresses and relays. | |
461 | ||
462 | Add support for Linux conntrack connection marking. If | |
463 | enabled with --conntrack, the connection mark for incoming | |
464 | DNS queries will be copied to the outgoing connections | |
465 | used to answer those queries. This allows clever firewall | |
466 | and accounting stuff. Only available if dnsmasq is | |
467 | compiled with HAVE_CONNTRACK and adds a dependency on | |
468 | libnetfilter-conntrack. Thanks to Ed Wildgoose for the | |
469 | initial idea, testing and sponsorship of this function. | |
470 | ||
471 | Provide a sane error message when someone attempts to | |
472 | match a tag in --dhcp-host. | |
473 | ||
474 | Tweak the behaviour of --domain-needed, to avoid problems | |
475 | with recursive nameservers downstream of dnsmasq. The new | |
476 | behaviour only stops A and AAAA queries, and returns | |
477 | NODATA rather than NXDOMAIN replies. | |
478 | ||
479 | Efficiency fix for very large DHCP configurations, thanks | |
480 | to James Gartrell and Mike Ruiz for help with this. | |
481 | ||
482 | Allow the TFTP-server address in --dhcp-boot to be a | |
483 | domain-name which is looked up in /etc/hosts. This can | |
484 | give multiple IP addresses which are used round-robin, | |
485 | thus doing TFTP server load-balancing. Thanks to Sushil | |
486 | Agrawal for the patch. | |
487 | ||
488 | When two tagged dhcp-options for a particular option | |
489 | number are both valid, use the one which is valid without | |
490 | a tag from the dhcp-range. Allows overriding of the value | |
491 | of a DHCP option for a particular host as well as | |
492 | per-network values. So | |
493 | --dhcp-range=set:interface1,...... | |
494 | --dhcp-host=set:myhost,..... | |
495 | --dhcp-option=tag:interface1,option:nis-domain,"domain1" | |
496 | --dhcp-option=tag:myhost,option:nis-domain,"domain2" | |
497 | will set the NIS-domain to domain1 for hosts in the range, but | |
498 | override that to domain2 for a particular host. | |
499 | ||
500 | Fix bug which resulted in truncated files and timeouts for | |
501 | some TFTP transfers. The bug only occurs with netascii | |
502 | transfers and needs an unfortunate relationship between | |
503 | file size, blocksize and the number of newlines in the | |
504 | last block before it manifests itself. Many thanks to | |
505 | Alkis Georgopoulos for spotting the problem and providing | |
506 | a comprehensive test-case. | |
507 | ||
508 | Fix regression in TFTP server on *BSD platforms introduced | |
509 | in version 2.56, due to confusion with sockaddr | |
de604c18 | 510 | length. Many thanks to Loic Pefferkorn for finding this. |
7de060b0 SK |
511 | |
512 | Support scope-ids in IPv6 addresses of nameservers from | |
513 | /etc/resolv.conf and in --server options. Eg | |
514 | nameserver fe80::202:a412:4512:7bbf%eth0 or | |
515 | server=fe80::202:a412:4512:7bbf%eth0. Thanks to | |
516 | Michael Stapelberg for the suggestion. | |
517 | ||
518 | Update Polish translation, thanks to Jan Psota. | |
519 | ||
520 | Update French translation. Thanks to Gildas Le Nadan. | |
521 | ||
522 | ||
572b41eb SK |
523 | version 2.57 |
524 | Add patches to allow build under Android. | |
525 | ||
526 | Provide our own header for the DNS protocol, rather than | |
527 | relying on arpa/nameser.h. This has proved more or less | |
528 | defective over the years and the final straw is that it's | |
529 | effectively empty on Android. | |
530 | ||
531 | Fix regression in 2.56 which caused hex constants in | |
532 | configuration to be rejected if they contain the '*' | |
533 | wildcard. | |
534 | ||
535 | Correct wrong casts of arguments to ctype.h functions, | |
536 | isdigit(), isxdigit() etc. Thanks to Matthias Andree for | |
537 | spotting this. | |
538 | ||
539 | Allow build with IDN support independently from i18n. | |
540 | IDN support continues to be included automatically | |
541 | when i18n is included. | |
542 | 'make COPTS=-DHAVE_IDN' is the magic incantation. | |
543 | ||
544 | Modify check on extraneous command line junk (added in | |
545 | 2.56) so that it doesn't complain about extra _empty_ | |
546 | arguments. Otherwise this breaks libvirt. | |
547 | ||
548 | ||
28866e95 SK |
549 | version 2.56 |
550 | Add a patch to allow dnsmasq to get interface names right in a | |
551 | Solaris zone. Thanks to Dj Padzensky for this. | |
552 | ||
553 | Improve data-type parsing heuristics so that | |
554 | --dhcp-option=option:domain-search,. | |
555 | treats the value as a string and not an IP address. | |
556 | Thanks to Clemens Fischer for spotting that. | |
557 | ||
558 | Add IPv6 support to the TFTP server. Many thanks to Jan | |
559 | 'RedBully' Seiffert for the patches. | |
560 | ||
561 | Log DNS queries at level LOG_INFO, rather then | |
562 | LOG_DEBUG. This makes things consistent with DHCP | |
563 | logging. Thanks to Adam Pribyl for spotting the problem. | |
564 | ||
565 | Ensure that dnsmasq terminates cleanly when using | |
566 | --syslog-async even if it cannot make a connection to the | |
567 | syslogd. | |
568 | ||
569 | Add --add-mac option. This is to support currently | |
570 | experimental DNS filtering facilities. Thanks to Benjamin | |
571 | Petrin for the orignal patch. | |
572 | ||
573 | Fix bug which meant that tags were ignored in dhcp-range | |
574 | configuration specifying PXE-proxy service. Thanks to | |
575 | Cristiano Cumer for spotting this. | |
576 | ||
577 | Raise an error if there is extra junk, not part of an | |
578 | option, on the command line. | |
579 | ||
580 | Flag a couple of log messages in cache.c as coming from | |
581 | the DHCP subsystem. Thanks to Olaf Westrik for the patch. | |
582 | ||
583 | Omit timestamps from logs when a) logging to stderr and | |
584 | b) --keep-in-forground is set. The logging facility on the | |
585 | other end of stderr can be assumned to supply them. Thanks | |
586 | to John Hallam for the patch. | |
587 | ||
588 | Don't complain about strings longer than 255 characters in | |
589 | --txt-record, just split the long strings into 255 | |
590 | character chunks instead. | |
591 | ||
592 | Fix crash on double-free. This bug can only happen when | |
593 | dhcp-script is in use and then only in rare circumstances | |
594 | triggered by high DHCP transaction rate and a slow | |
595 | script. Thanks to Ferenc Wagner for finding the problem. | |
596 | ||
597 | Only log that a file has been sent by TFTP after the | |
598 | transfer has completed succesfully. | |
599 | ||
600 | A good suggestion from Ferenc Wagner: extend | |
601 | the --domain option to allow this sort of thing: | |
602 | --domain=thekelleys.org.uk,192.168.0.0/24,local | |
603 | which automatically creates | |
604 | --local=/thekelleys.org.uk/ | |
605 | --local=/0.168.192.in-addr.arpa/ | |
606 | ||
607 | Tighten up syntax checking of hex contants in the config | |
608 | file. Thanks to Fred Damen for spotting this. | |
609 | ||
610 | Add dnsmasq logo/icon, contributed by Justin Swift. Many | |
611 | thanks for that. | |
612 | ||
613 | Never cache DNS replies which have the 'cd' bit set, or | |
614 | which result from queries forwarded with the 'cd' bit | |
615 | set. The 'cd' bit instructs a DNSSEC validating server | |
616 | upstream to ignore signature failures and return replies | |
617 | anyway. Without this change it's possible to pollute the | |
618 | dnsmasq cache with bad data by making a query with the | |
619 | 'cd' bit set and subsequent queries would return this data | |
620 | without its being marked as suspect. Thanks to Anders | |
621 | Kaseorg for pointing out this problem. | |
622 | ||
623 | Add --proxy-dnssec flag, for compliance with RFC | |
624 | 4035. Dnsmasq will now clear the 'ad' bit in answers returned | |
625 | from upstream validating nameservers unless this option is | |
626 | set. | |
627 | ||
628 | Allow a filename of "-" for --conf-file to read | |
629 | stdin. Suggestion from Timothy Redaelli. | |
630 | ||
631 | Rotate the order of SRV records in replies, to provide | |
632 | round-robin load balancing when all the priorities are | |
633 | equal. Thanks to Peter McKinney for the suggestion. | |
634 | ||
635 | Edit | |
636 | contrib/MacOSX-launchd/uk.org.thekelleys.dnsmasq.plist | |
637 | so that it doesn't log all queries to a file by | |
638 | default. Thanks again to Peter McKinney. | |
639 | ||
640 | By default, setting an IPv4 address for a domain but not | |
641 | an IPv6 address causes dnsmasq to return | |
642 | an NODATA reply for IPv6 (or vice-versa). So | |
643 | --address=/google.com/1.2.3.4 stops IPv6 queries for | |
644 | *google.com from being forwarded. Make it possible to | |
645 | override this behaviour by defining the sematics if the | |
646 | same domain appears in both --server and --address. | |
647 | In that case, the --address has priority for the address | |
648 | family in which is appears, but the --server has priority | |
649 | of the address family which doesn't appear in --adddress | |
650 | So: | |
651 | --address=/google.com/1.2.3.4 | |
652 | --server=/google.com/# | |
653 | will return 1.2.3.4 for IPv4 queries for *.google.com but | |
654 | forward IPv6 queries to the normal upstream nameserver. | |
655 | Similarly when setting an IPv6 address | |
656 | only this will allow forwarding of IPv4 queries. Thanks to | |
657 | William for pointing out the need for this. | |
658 | ||
659 | Allow more than one --dhcp-optsfile and --dhcp-hostsfile | |
660 | and make them understand directories as arguments in the | |
661 | same way as --addn-hosts. Suggestion from John Hanks. | |
662 | ||
663 | Ignore rebinding requests for leases we don't know | |
664 | about. Rebind is broadcast, so we might get to overhear a | |
665 | request meant for another DHCP server. NAKing this is | |
666 | wrong. Thanks to Brad D'Hondt for assistance with this. | |
667 | ||
572b41eb SK |
668 | Fix cosmetic bug which produced strange output when |
669 | dumping cache statistics with some configurations. Thanks | |
670 | to Fedor Kozhevnikov for spotting this. | |
28866e95 SK |
671 | |
672 | ||
c52e1897 | 673 | version 2.55 |
28866e95 SK |
674 | Fix crash when /etc/ethers is in use. Thanks to |
675 | Gianluigi Tiesi for finding this. | |
c52e1897 | 676 | |
28866e95 SK |
677 | Fix crash in netlink_multicast(). Thanks to Arno Wald for |
678 | finding this one. | |
c52e1897 | 679 | |
28866e95 SK |
680 | Allow the empty domain "." in dhcp domain-search (119) |
681 | options. | |
c52e1897 SK |
682 | |
683 | ||
684 | version 2.54 | |
28866e95 SK |
685 | There is no version 2.54 to avoid confusion with 2.53, |
686 | which incorrectly identifies itself as 2.54. | |
c52e1897 SK |
687 | |
688 | ||
8ef5ada2 SK |
689 | version 2.53 |
690 | Fix failure to compile on Debian/kFreeBSD. Thanks to | |
691 | Axel Beckert and Petr Salinger. | |
692 | ||
693 | Fix code to avoid scary strict-aliasing warnings | |
694 | generated by gcc 4.4. | |
695 | ||
696 | Added FAQ entry warning about DHCP failures with Vista | |
697 | when firewalls block 255.255.255.255. | |
698 | ||
699 | Fixed bug which caused bad things to happen if a | |
700 | resolv.conf file which exists is subsequently removed. | |
701 | Thanks to Nikolai Saoukh for the patch. | |
702 | ||
703 | Rationalised the DHCP tag system. Every configuration item | |
704 | which can set a tag does so by adding "set:<tag>" and | |
705 | every configuration item which is conditional on a tag is | |
706 | made so by "tag:<tag>". The NOT operator changes to '!', | |
707 | which is a bit more intuitive too. Dhcp-host directives | |
708 | can set more than one tag now. The old '#' NOT, | |
709 | "net:" prefix and no-prefixes are still honoured, so | |
710 | no existing config file needs to be changed, but | |
711 | the documentation and new-style config files should be | |
712 | much less confusing. | |
713 | ||
714 | Added --tag-if to allow boolean operations on tags. | |
715 | This allows complicated logic to be clearer and more | |
716 | general. A great suggestion from Richard Voigt. | |
717 | ||
718 | Add broadcast/unicast information to DHCP logging. | |
719 | ||
720 | Allow --dhcp-broadcast to be unconditional. | |
721 | ||
722 | Fixed incorrect behaviour with NOT <tag> conditionals in | |
723 | dhcp-options. Thanks to Max Turkewitz for assistance | |
724 | finding this. | |
725 | ||
726 | If we send vendor-class encapsulated options based on the | |
727 | vendor-class supplied by the client, and no explicit | |
728 | vendor-class option is given, echo back the vendor-class | |
729 | from the client. | |
730 | ||
731 | Fix bug which stopped dnsmasq from matching both a | |
732 | circuitid and a remoteid. Thanks to Ignacio Bravo for | |
733 | finding this. | |
734 | ||
735 | Add --dhcp-proxy, which makes it possible to configure | |
736 | dnsmasq to use a DHCP relay agent as a full proxy, with | |
737 | all DHCP messages passing through the proxy. This is | |
738 | useful if the relay adds extra information to the packets | |
739 | it forwards, but cannot be configured with the RFC 5107 | |
740 | server-override option. | |
741 | ||
742 | Added interface:<iface name> part to dhcp-range. The | |
743 | semantics of this are very odd at first sight, but it | |
744 | allows a single line of the form | |
745 | dhcp-range=interface:virt0,192.168.0.4,192.168.0.200 | |
746 | to be added to dnsmasq configuration which then supplies | |
747 | DHCP and DNS services to that interface, without affecting | |
748 | what services are supplied to other interfaces and | |
749 | irrespective of the existance or lack of | |
750 | interface=<interface> | |
751 | lines elsewhere in the dnsmasq configuration. The idea is | |
752 | that such a line can be added automatically by libvirt | |
753 | or equivalent systems, without disturbing any manual | |
754 | configuration. | |
755 | ||
756 | Similarly to the above, allow --enable-tftp=<interface> | |
757 | ||
758 | Allow a TFTP root to be set separately for requests via | |
759 | different interfaces, --tftp-root=<path>,<interface> | |
760 | ||
761 | Correctly handle and log clashes between CNAMES and | |
762 | DNS names being given to DHCP leases. This fixes a bug | |
763 | which caused nonsense IP addresses to be logged. Thanks to | |
764 | Sergei Zhirikov for finding and analysing the problem. | |
765 | ||
766 | Tweak flush_log so as to avoid leaving the log | |
767 | file in non-blocking mode. O_NONBLOCK is a property of the | |
768 | file, not the process/descriptor. | |
769 | ||
770 | Fix contrib/Solaris10/create_package | |
771 | (/usr/man -> /usr/share/man) Thanks to Vita Batrla. | |
772 | ||
773 | Fix a problem where, if a client got a lease, then went | |
774 | to another subnet and got another lease, then moved back, | |
775 | it couldn't resume the old lease, but would instead get | |
776 | a new address. Thanks to Leonardo Rodrigues for spotting | |
777 | this and testing the fix. | |
778 | ||
779 | Fix weird bug which sometimes omitted certain characters | |
780 | from the start of quoted strings in dhcp-options. Thanks | |
781 | to Dayton Turner for spotting the problem. | |
782 | ||
783 | Add facility to redirect some domains to the standard | |
784 | upstream servers: this allows something like | |
785 | --server=/google.com/1.2.3.4 --server=/www.google.com/# | |
786 | which will send queries for *.google.com to 1.2.3.4, | |
787 | except *www.google.com which will be forwarded as usual. | |
788 | Thanks to AJ Weber for prompting this addition. | |
789 | ||
790 | Improve the hash-algorithm used to generate IP addresses | |
791 | from MAC addresses during initial DHCP address | |
792 | allocation. This improves performance when large numbers | |
793 | of hosts with similar MAC addresses all try and get an IP | |
794 | address at the same time. Thanks to Paul Smith for his | |
795 | work on this. | |
796 | ||
797 | Tweak DHCP code so that --bridge-interface can be used to | |
798 | select which IP alias of an interface should be used for | |
799 | DHCP purposes on Linux. If eth0 has an alias eth0:dhcp | |
800 | then adding --bridge-interface=eth0:dhcp,eth0 will use | |
801 | the address of eth0:dhcp to determine the correct subnet | |
802 | for DHCP address allocation. Thanks to Pawel Golaszewski | |
803 | for prompting this and Eric Cooper for further testing. | |
804 | ||
805 | Add --dhcp-generate-names. Suggestion by Ferenc Wagner. | |
806 | ||
807 | Tweak DNS server selection algorithm when there is more | |
808 | than one server available for a domain, eg. | |
809 | --server=/mydomain/1.1.1.1 | |
810 | --server=/mydomain/2.2.2.2 | |
811 | Thanks to Alberto Cuesta-Canada for spotting a weakness | |
812 | here. | |
813 | ||
814 | Add --max-ttl. Thanks to Fredrik Ringertz for the patch. | |
815 | ||
816 | Allow --log-facility=- to force all logging to | |
817 | stderr. Suggestion from Clemens Fischer. | |
818 | ||
819 | Fix regression which caused configuration like | |
820 | --address=/.domain.com/1.2.3.4 to be rejected. The dot to the | |
821 | left of the domain has been implied and not required for a | |
822 | long time, but it should be accepted for backward | |
823 | compatibility. Thanks to Andrew Burcin for spotting this. | |
824 | ||
825 | Add --rebind-domain-ok and --rebind-localhost-ok. | |
826 | Suggestion from Clemens Fischer. | |
827 | ||
828 | Log replies to queries of type TXT, when --log-queries | |
829 | is set. | |
830 | ||
831 | Fix compiler warnings when compiled with -DNO_DHCP. Thanks | |
832 | to Shantanu Gadgil for the patch. | |
833 | ||
834 | Updated French translation. Thanks to Gildas Le Nadan. | |
835 | ||
836 | Updated Polish translation. Thanks to Jan Psota. | |
837 | ||
838 | Updated German translation. Thanks to Matthias Andree. | |
839 | ||
840 | Added contrib/static-arp, thanks to Darren Hoo. | |
841 | ||
842 | Fix corruption of the domain when a name from /etc/hosts | |
843 | overrides one supplied by a DHCP client. Thanks to Fedor | |
844 | Kozhevnikov for spotting the problem. | |
845 | ||
846 | Updated Spanish translation. Thanks to Chris Chatham. | |
847 | ||
848 | ||
316e2730 SK |
849 | version 2.52 |
850 | Work around a Linux kernel bug which insists that the | |
851 | length of the option passed to setsockopt must be at least | |
852 | sizeof(int) bytes, even if we're calling SO_BINDTODEVICE | |
853 | and the device name is "lo". Note that this is fixed | |
854 | in kernel 2.6.31, but the workaround is harmless and | |
855 | allows earlier kernels to be used. Also fix dnsmasq | |
856 | bug which reported the wrong address when this failed. | |
857 | Thanks to Fedor for finding this. | |
858 | ||
859 | The API for IPv6 PKTINFO changed around Linux kernel | |
860 | 2.6.14. Workaround the case where dnsmasq is compiled | |
861 | against newer headers, but then run on an old kernel: | |
862 | necessary for some *WRT distros. | |
863 | ||
864 | Re-read the set of network interfaces when re-loading | |
865 | /etc/resolv.conf if --bind-interfaces is not set. This | |
866 | handles the case that loopback interfaces do not exist | |
867 | when dnsmasq is first started. | |
868 | ||
869 | Tweak the PXE code to support port 4011. This should | |
870 | reduce broadcasts and make things more reliable when other | |
871 | servers are around. It also improves inter-operability | |
872 | with certain clients. | |
873 | ||
874 | Make a pxe-service configuration with no filename or boot | |
875 | service type legal: this does a local boot. eg. | |
876 | pxe-service=x86PC, "Local boot" | |
877 | ||
878 | Be more conservative in detecting "A for A" | |
879 | queries. Dnsmasq checks if the name in a type=A query looks | |
880 | like a dotted-quad IP address and answers the query itself | |
881 | if so, rather than forwarding it. Previously dnsmasq | |
882 | relied in the library function inet_addr() to convert | |
883 | addresses, and that will accept some things which are | |
884 | confusing in this context, like 1.2.3 or even just | |
885 | 1234. Now we only do A for A processing for four decimal | |
886 | numbers delimited by dots. | |
887 | ||
888 | A couple of tweaks to fix compilation on Solaris. Thanks | |
889 | to Joel Macklow for help with this. | |
890 | ||
891 | Another Solaris compilation tweak, needed for Solaris | |
892 | 2009.06. Thanks to Lee Essen for that. | |
893 | ||
894 | Added extract packaging stuff from Lee Essen to | |
895 | contrib/Solaris10. | |
896 | ||
897 | Increased the default limit on number of leases to 1000 | |
898 | (from 150). This is mainly a defence against DoS attacks, | |
899 | and for the average "one for two class C networks" | |
900 | installation, IP address exhaustion does that just as | |
901 | well. Making the limit greater than the number of IP | |
902 | addresses available in such an installation removes a | |
903 | surprise which otherwise can catch people out. | |
904 | ||
905 | Removed extraneous trailing space in the value of the | |
906 | DNSMASQ_TIME_REMAINING DNSMASQ_LEASE_LENGTH and | |
907 | DNSMASQ_LEASE_EXPIRES environment variables. Thanks to | |
908 | Gildas Le Nadan for spotting this. | |
909 | ||
910 | Provide the network-id tags for a DHCP transaction to | |
911 | the lease-change script in the environment variable | |
912 | DNSMASQ_TAGS. A good suggestion from Gildas Le Nadan. | |
913 | ||
914 | Add support for RFC3925 "Vendor-Identifying Vendor | |
915 | Options". The syntax looks like this: | |
916 | --dhcp-option=vi-encap:<enterprise number>, ......... | |
917 | ||
918 | Add support to --dhcp-match to allow matching against | |
919 | RFC3925 "Vendor-Identifying Vendor Classes". The syntax | |
920 | looks like this: | |
921 | --dhcp-match=tag,vi-encap<enterprise number>, <value> | |
922 | ||
923 | Add some application specific code to assist in | |
924 | implementing the Broadband forum TR069 CPE-WAN | |
925 | specification. The details are in contrib/CPE-WAN/README | |
926 | ||
927 | Increase the default DNS packet size limit to 4096, as | |
928 | recommended by RFC5625 section 4.4.3. This can be | |
929 | reconfigured using --edns-packet-max if needed. Thanks to | |
930 | Francis Dupont for pointing this out. | |
931 | ||
8ef5ada2 | 932 | Rewrite query-ids even for TSIG signed packets, since |
316e2730 SK |
933 | this is allowed by RFC5625 section 4.5. |
934 | ||
935 | Use getopt_long by default on OS X. It has been supported | |
936 | since version 10.3.0. Thanks to Arek Dreyer for spotting | |
937 | this. | |
938 | ||
939 | Added up-to-date startup configuration for MacOSX/launchd | |
940 | in contrib/MacOSX-launchd. Thanks to Arek Dreyer for | |
941 | providing this. | |
942 | ||
943 | Fix link error when including Dbus but excluding DHCP. | |
944 | Thanks to Oschtan for the bug report. | |
945 | ||
946 | Updated French translation. Thanks to Gildas Le Nadan. | |
947 | ||
948 | Updated Polish translation. Thanks to Jan Psota. | |
949 | ||
950 | Updated Spanish translation. Thanks to Chris Chatham. | |
951 | ||
8ef5ada2 SK |
952 | Fixed confusion about domains, when looking up DHCP hosts |
953 | in /etc/hosts. This could cause spurious "Ignoring | |
954 | domain..." messages. Thanks to Fedor Kozhevnikov for | |
955 | finding and analysing the problem. | |
316e2730 | 956 | |
8ef5ada2 | 957 | |
1f15b81d SK |
958 | version 2.51 |
959 | Add support for internationalised DNS. Non-ASCII characters | |
960 | in domain names found in /etc/hosts, /etc/ethers and | |
961 | /etc/dnsmasq.conf will be correctly handled by translation to | |
962 | punycode, as specified in RFC3490. This function is only | |
963 | available if dnsmasq is compiled with internationalisation | |
964 | support, and adds a dependency on GNU libidn. Without i18n | |
965 | support, dnsmasq continues to be compilable with just | |
966 | standard tools. Thanks to Yves Dorfsman for the | |
967 | suggestion. | |
968 | ||
969 | Add two more environment variables for lease-change scripts: | |
970 | First, DNSMASQ_SUPPLIED_HOSTNAME; this is set to the hostname | |
971 | supplied by a client, even if the actual hostname used is | |
972 | over-ridden by dhcp-host or dhcp-ignore-names directives. | |
973 | Also DNSMASQ_RELAY_ADDRESS which gives the address of | |
974 | a DHCP relay, if used. | |
975 | Suggestions from Michael Rack. | |
976 | ||
977 | Fix regression which broke echo of relay-agent | |
978 | options. Thanks to Michael Rack for spotting this. | |
979 | ||
980 | Don't treat option 67 as being interchangeable with | |
981 | dhcp-boot parameters if it's specified as | |
982 | dhcp-option-force. | |
983 | ||
984 | Make the code to call scripts on lease-change compile-time | |
985 | optional. It can be switched off by editing src/config.h | |
986 | or building with "make COPTS=-DNO_SCRIPT". | |
987 | ||
988 | Make the TFTP server cope with filenames from Windows/DOS | |
989 | which use '\' as pathname separator. Thanks to Ralf for | |
990 | the patch. | |
991 | ||
992 | Updated Polish translation. Thanks to Jan Psota. | |
993 | ||
994 | Warn if an IP address is duplicated in /etc/ethers. Thanks | |
995 | to Felix Schwarz for pointing this out. | |
996 | ||
997 | Teach --conf-dir to take an option list of file suffices | |
998 | which will be ignored when scanning the directory. Useful | |
999 | for backup files etc. Thanks to Helmut Hullen for the | |
1000 | suggestion. | |
1001 | ||
1002 | Add new DHCP option named tftpserver-address, which | |
1003 | corresponds to the third argument of dhcp-boot. This | |
1004 | allows the complete functionality of dhcp-boot to be | |
1005 | replicated with dhcp-option. Useful when using | |
1006 | dhcp-optsfile. | |
1007 | ||
1008 | Test which upstream nameserver to use every 10 seconds | |
1009 | or 50 queries and not just when a query times out and | |
1010 | is retried. This should improve performance when there | |
1011 | is a slow nameserver in the list. Thanks to Joe for the | |
1012 | suggestion. | |
1013 | ||
1014 | Don't do any PXE processing, even for clients with the | |
1015 | correct vendorclass, unless at least one pxe-prompt or | |
1016 | pxe-service option is given. This stops dnsmasq | |
1017 | interfering with proxy PXE subsystems when it is just | |
1018 | the DHCP server. Thanks to Spencer Clark for spotting this. | |
1019 | ||
1020 | Limit the blocksize used for TFTP transfers to a value | |
1021 | which avoids packet fragmentation, based on the MTU of the | |
1022 | local interface. Many netboot ROMs can't cope with | |
1023 | fragmented packets. | |
1024 | ||
1025 | Honour dhcp-ignore configuration for PXE and proxy-PXE | |
1026 | requests. Thanks to Niels Basjes for the bug report. | |
1027 | ||
1028 | Updated French translation. Thanks to Gildas Le Nadan. | |
1029 | ||
1030 | ||
77e94da7 | 1031 | version 2.50 |
1f15b81d | 1032 | Fix security problem which allowed any host permitted to |
77e94da7 SK |
1033 | do TFTP to possibly compromise dnsmasq by remote buffer |
1034 | overflow when TFTP enabled. Thanks to Core Security | |
1035 | Technologies and Iván Arce, Pablo Hernán Jorge, Alejandro | |
1036 | Pablo Rodriguez, Martín Coco, Alberto Soliño Testa and | |
1037 | Pablo Annetta. This problem has Bugtraq id: 36121 | |
1038 | and CVE: 2009-2957 | |
1039 | ||
1040 | Fix a problem which allowed a malicious TFTP client to | |
1041 | crash dnsmasq. Thanks to Steve Grubb at Red Hat for | |
1042 | spotting this. This problem has Bugtraq id: 36120 and | |
1043 | CVE: 2009-2958 | |
1044 | ||
1045 | ||
03a97b61 SK |
1046 | version 2.49 |
1047 | Fix regression in 2.48 which disables the lease-change | |
1048 | script. Thanks to Jose Luis Duran for spotting this. | |
1049 | ||
1050 | Log TFTP "file not found" errors. These were not logged, | |
1051 | since a normal PXELinux boot generates many of them, but | |
1052 | the lack of the messages seems to be more confusing than | |
1053 | routinely seeing them when there is no real error. | |
1054 | ||
1055 | Update Spanish translation. Thanks to Chris Chatham. | |
1056 | ||
1057 | ||
7622fc06 SK |
1058 | version 2.48 |
1059 | Archived the extensive, backwards, changelog to | |
1060 | CHANGELOG.archive. The current changelog now runs from | |
1061 | version 2.43 and runs conventionally. | |
9e4abcb5 | 1062 | |
7622fc06 SK |
1063 | Fixed bug which broke binding of servers to physical |
1064 | interfaces when interface names were longer than four | |
1065 | characters. Thanks to MURASE Katsunori for the patch. | |
9e4abcb5 | 1066 | |
7622fc06 SK |
1067 | Fixed netlink code to check that messages come from the |
1068 | correct source, and not another userspace process. Thanks | |
1069 | to Steve Grubb for the patch. | |
9e4abcb5 | 1070 | |
7622fc06 SK |
1071 | Maintainability drive: removed bug and missing feature |
1072 | workarounds for some old platforms. Solaris 9, OpenBSD | |
1073 | older than 4.1, Glibc older than 2.2, Linux 2.2.x and | |
1074 | DBus older than 1.1.x are no longer supported. | |
9e4abcb5 | 1075 | |
7622fc06 SK |
1076 | Don't read included configuration files more than once: |
1077 | allows complex configuration structures without problems. | |
9e4abcb5 | 1078 | |
7622fc06 SK |
1079 | Mark log messages from the various subsystems in dnsmasq: |
1080 | messages from the DHCP subsystem now have the ident string | |
1081 | "dnsmasq-dhcp" and messages from TFTP have ident | |
1082 | "dnsmasq-tftp". Thanks to Olaf Westrik for the patch. | |
9e4abcb5 | 1083 | |
7622fc06 SK |
1084 | Fix possible infinite DHCP protocol loop when an IP |
1085 | address nailed to a hostname (not a MAC address) and a | |
1086 | host sometimes provides the name, sometimes not. | |
9e4abcb5 | 1087 | |
7622fc06 SK |
1088 | Allow --addn-hosts to take a directory: all the files |
1089 | in the directory are read. Thanks to Phil Cornelius for | |
1090 | the suggestion. | |
9e4abcb5 | 1091 | |
7622fc06 | 1092 | Support --bridge-interface on all platforms, not just BSD. |
1ab84e2f | 1093 | |
7622fc06 SK |
1094 | Added support for advanced PXE functions. It's now |
1095 | possible to define a prompt and menu options which will | |
1096 | be displayed when a client PXE boots. It's also possible to | |
1097 | hand-off booting to other boot servers. Proxy-DHCP, where | |
1098 | dnsmasq just supplies the PXE information and another DHCP | |
1099 | server does address allocation, is also allowed. See the | |
1100 | --pxe-prompt and --pxe-service keywords. Thanks to | |
1101 | Alkis Georgopoulos for the suggestion and Guilherme Moro | |
1102 | and Michael Brown for assistance. | |
1103 | ||
1104 | Improvements to DHCP logging. Thanks to Tom Metro for | |
1105 | useful suggestions. | |
3be34541 | 1106 | |
7622fc06 SK |
1107 | Add ability to build dnsmasq without DHCP support. To do |
1108 | this, edit src/config.h or build with | |
1109 | "make COPTS=-DNO_DHCP". Thanks to Mahavir Jain for the patch. | |
36717eee | 1110 | |
7622fc06 SK |
1111 | Added --test command-line switch - syntax check |
1112 | configuration files only. | |
36717eee | 1113 | |
7622fc06 | 1114 | Updated French translation. Thanks to Gildas Le Nadan. |
fd9fa481 | 1115 | |
3d8df260 | 1116 | |
7622fc06 SK |
1117 | version 2.47 |
1118 | Updated French translation. Thanks to Gildas Le Nadan. | |
3d8df260 | 1119 | |
7622fc06 SK |
1120 | Fixed interface enumeration code to work on NetBSD |
1121 | 5.0. Thanks to Roy Marples for the patch. | |
3d8df260 | 1122 | |
7622fc06 SK |
1123 | Updated config.h to use the same location for the lease |
1124 | file on NetBSD as the other *BSD variants. Also allow | |
1125 | LEASEFILE and CONFFILE symbols to be overriden in CFLAGS. | |
3d8df260 | 1126 | |
7622fc06 SK |
1127 | Handle duplicate address detection on IPv6 more |
1128 | intelligently. In IPv6, an interface can have an address | |
1129 | which is not usable, because it is still undergoing DAD | |
1130 | (such addresses are marked "tentative"). Attempting to | |
1131 | bind to an address in this state returns an error, | |
1132 | EADDRNOTAVAIL. Previously, on getting such an error, | |
1133 | dnsmasq would silently abandon the address, and never | |
1134 | listen on it. Now, it retries once per second for 20 | |
1135 | seconds before generating a fatal error. 20 seconds should | |
1136 | be long enough for any DAD process to complete, but can be | |
1137 | adjusted in src/config.h if necessary. Thanks to Martin | |
1138 | Krafft for the bug report. | |
3d8df260 | 1139 | |
7622fc06 | 1140 | Add DBus introspection. Patch from Jeremy Laine. |
b8187c80 | 1141 | |
7622fc06 SK |
1142 | Update Dbus configuration file. Patch from Colin Walters. |
1143 | Fix for this bug: | |
1144 | http://bugs.freedesktop.org/show_bug.cgi?id=18961 | |
b8187c80 | 1145 | |
7622fc06 SK |
1146 | Support arbitrarily encapsulated DHCP options, suggestion |
1147 | and initial patch from Samium Gromoff. This is useful for | |
1148 | (eg) gPXE, which expect all its private options to be | |
1149 | encapsulated inside a single option 175. So, eg, | |
b8187c80 | 1150 | |
7622fc06 SK |
1151 | dhcp-option = encap:175, 190, "iscsi-client0" |
1152 | dhcp-option = encap:175, 191, "iscsi-client0-secret" | |
b8187c80 | 1153 | |
7622fc06 | 1154 | will provide iSCSI parameters to gPXE. |
b8187c80 | 1155 | |
7622fc06 SK |
1156 | Enhance --dhcp-match to allow testing of the contents of a |
1157 | client-sent option, as well as its presence. This | |
1158 | application in mind for this is RFC 4578 | |
1159 | client-architecture specifiers, but it's generally useful. | |
1160 | Joey Korkames suggested the enhancement. | |
b8187c80 | 1161 | |
7622fc06 SK |
1162 | Move from using the IP_XMIT_IF ioctl to IP_BOUND_IF on |
1163 | OpenSolaris. Thanks to Bastian Machek for the heads-up. | |
b8187c80 | 1164 | |
7622fc06 SK |
1165 | No longer complain about blank lines in |
1166 | /etc/ethers. Thanks to Jon Nelson for the patch. | |
b8187c80 | 1167 | |
7622fc06 SK |
1168 | Fix binding of servers to physical devices, eg |
1169 | --server=/domain/1.2.3.4@eth0 which was broken from 2.43 | |
1170 | onwards unless --query-port=0 set. Thanks to Peter Naulls | |
cdeda28f SK |
1171 | for the bug report. |
1172 | ||
7622fc06 SK |
1173 | Reply to DHCPINFORM requests even when the supplied ciaddr |
1174 | doesn't fall in any dhcp-range. In this case it's not | |
1175 | possible to supply a complete configuration, but | |
1176 | individually-configured options (eg PAC) may be useful. | |
5aabfc78 | 1177 | |
7622fc06 SK |
1178 | Allow the source address of an alias to be a range: |
1179 | --alias=192.168.0.0,10.0.0.0,255.255.255.0 maps the whole | |
1180 | subnet 192.168.0.0->192.168.0.255 to 10.0.0.0->10.0.0.255, | |
1181 | as before. | |
1182 | --alias=192.168.0.10-192.168.0.40,10.0.0.0,255.255.255.0 | |
1183 | maps only the 192.168.0.10->192.168.0.40 region. Thanks to | |
1184 | Ib Uhrskov for the suggestion. | |
5aabfc78 | 1185 | |
7622fc06 SK |
1186 | Don't dynamically allocate DHCP addresses which may break |
1187 | Windows. Addresses which end in .255 or .0 are broken in | |
1188 | Windows even when using supernetting. | |
1189 | --dhcp-range=192.168.0.1,192.168.1.254,255,255,254.0 means | |
1190 | 192.168.0.255 is a valid IP address, but not for Windows. | |
1191 | See Microsoft KB281579. We therefore no longer allocate | |
1192 | these addresses to avoid hard-to-diagnose problems. | |
5aabfc78 | 1193 | |
7622fc06 | 1194 | Update Polish translation. Thanks to Jan Psota. |
5aabfc78 | 1195 | |
7622fc06 SK |
1196 | Delete the PID-file when dnsmasq shuts down. Note that by |
1197 | this time, dnsmasq is normally not running as root, so | |
1198 | this will fail if the PID-file is stored in a root-owned | |
1199 | directory; such failure is silently ignored. To take | |
1200 | advantage of this feature, the PID-file must be stored in a | |
1201 | directory owned and write-able by the user running | |
1202 | dnsmasq. | |
5aabfc78 | 1203 | |
5aabfc78 | 1204 | |
7622fc06 SK |
1205 | version 2.46 |
1206 | Allow --bootp-dynamic to take a netid tag, so that it may | |
1207 | be selectively enabled. Thanks to Olaf Westrik for the | |
1208 | suggestion. | |
5aabfc78 | 1209 | |
7622fc06 SK |
1210 | Remove ISC-leasefile reading code. This has been |
1211 | deprecated for a long time, and last time I removed it, it | |
1212 | ended up going back by request of one user. This time, | |
1213 | it's gone for good; otherwise it would need to be | |
1214 | re-worked to support multiple domains (see below). | |
5aabfc78 | 1215 | |
7622fc06 SK |
1216 | Support DHCP clients in multiple DNS domains. This is a |
1217 | long-standing request. Clients are assigned to a domain | |
1218 | based in their IP address. | |
5aabfc78 | 1219 | |
7622fc06 SK |
1220 | Add --dhcp-fqdn flag, which changes behaviour if DNS names |
1221 | assigned to DHCP clients. When this is set, there must be | |
1222 | a domain associated with each client, and only | |
1223 | fully-qualified domain names are added to the DNS. The | |
1224 | advantage is that the only the FQDN needs to be unique, | |
1225 | so that two or more DHCP clients can share a hostname, as | |
1226 | long as they are in different domains. | |
5aabfc78 | 1227 | |
7622fc06 SK |
1228 | Set environment variable DNSMASQ_DOMAIN when invoking |
1229 | lease-change script. This may be useful information to | |
1230 | have now that it's variable. | |
5aabfc78 | 1231 | |
7622fc06 SK |
1232 | Tighten up data-checking code for DNS packet |
1233 | handling. Thanks to Steve Dodd who found certain illegal | |
1234 | packets which could crash dnsmasq. No memory overwrite was | |
1235 | possible, so this is not a security issue beyond the DoS | |
1236 | potential. | |
824af85b | 1237 | |
7622fc06 SK |
1238 | Update example config dhcp option 47, the previous |
1239 | suggestion generated an illegal, zero-length, | |
1240 | option. Thanks to Matthias Andree for finding this. | |
824af85b | 1241 | |
7622fc06 SK |
1242 | Rewrite hosts-file reading code to remove the limit of |
1243 | 1024 characters per line. John C Meuser found this. | |
824af85b | 1244 | |
7622fc06 SK |
1245 | Create a net-id tag with the name of the interface on |
1246 | which the DHCP request was received. | |
824af85b | 1247 | |
7622fc06 SK |
1248 | Fixed minor memory leak in DBus code, thanks to Jeremy |
1249 | Laine for the patch. | |
824af85b | 1250 | |
7622fc06 SK |
1251 | Emit DBus signals as the DHCP lease database |
1252 | changes. Thanks to Jeremy Laine for the patch. | |
824af85b | 1253 | |
7622fc06 SK |
1254 | Allow for more that one MAC address in a dhcp-host |
1255 | line. This configuration tells dnsmasq that it's OK to | |
1256 | abandon a DHCP lease of the fixed address to one MAC | |
1257 | address, if another MAC address in the dhcp-host statement | |
1258 | asks for an address. This is useful to give a fixed | |
1259 | address to a host which has two network interfaces | |
1260 | (say, a laptop with wired and wireless interfaces.) | |
1261 | It's very important to ensure that only one interface | |
1262 | at a time is up, since dnsmasq abandons the first lease | |
1263 | and re-uses the address before the leased time has | |
1264 | elapsed. John Gray suggested this. | |
824af85b | 1265 | |
7622fc06 SK |
1266 | Tweak the response to a DHCP request packet with a wrong |
1267 | server-id when --dhcp-authoritative is set; dnsmasq now | |
1268 | returns a DHCPNAK, rather than silently ignoring the | |
1269 | packet. Thanks to Chris Marget for spotting this | |
1270 | improvement. | |
824af85b | 1271 | |
7622fc06 SK |
1272 | Add --cname option. This provides a limited alias |
1273 | function, usable for DHCP names. Thanks to AJ Weber for | |
1274 | suggestions on this. | |
824af85b | 1275 | |
7622fc06 SK |
1276 | Updated contrib/webmin with latest version from Neil |
1277 | Fisher. | |
824af85b | 1278 | |
7622fc06 | 1279 | Updated Polish translation. Thanks to Jan Psota. |
824af85b | 1280 | |
7622fc06 SK |
1281 | Correct the text names for DHCP options 64 and 65 to be |
1282 | "nis+-domain" and "nis+-servers". | |
9e038946 | 1283 | |
7622fc06 | 1284 | Updated Spanish translation. Thanks to Chris Chatham. |
9e038946 | 1285 | |
7622fc06 SK |
1286 | Force re-reading of /etc/resolv.conf when an "interface |
1287 | up" event occurs. | |
9e038946 | 1288 | |
824af85b | 1289 | |
7622fc06 SK |
1290 | version 2.45 |
1291 | Fix total DNS failure in release 2.44 unless --min-port | |
1292 | specified. Thanks to Steven Barth and Grant Coady for | |
1293 | bugreport. Also reject out-of-range port spec, which could | |
1294 | break things too: suggestion from Gilles Espinasse. | |
824af85b | 1295 | |
9e038946 | 1296 | |
7622fc06 SK |
1297 | version 2.44 |
1298 | Fix crash when unknown client attempts to renew a DHCP | |
1299 | lease, problem introduced in version 2.43. Thanks to | |
1300 | Carlos Carvalho for help chasing this down. | |
9e038946 | 1301 | |
7622fc06 SK |
1302 | Fix potential crash when a host which doesn't have a lease |
1303 | does DHCPINFORM. Again introduced in 2.43. This bug has | |
1304 | never been reported in the wild. | |
9e038946 | 1305 | |
7622fc06 SK |
1306 | Fix crash in netlink code introduced in 2.43. Thanks to |
1307 | Jean Wolter for finding this. | |
9e038946 | 1308 | |
7622fc06 SK |
1309 | Change implementation of min_port to work even if min-port |
1310 | is large. | |
9e038946 | 1311 | |
7622fc06 SK |
1312 | Patch to enable compilation of latest Mac OS X. Thanks to |
1313 | David Gilman. | |
9e038946 | 1314 | |
7622fc06 | 1315 | Update Spanish translation. Thanks to Christopher Chatham. |
1a6bca81 SK |
1316 | |
1317 | ||
1318 | version 2.43 | |
1319 | Updated Polish translation. Thanks to Jan Psota. | |
1320 | ||
1321 | Flag errors when configuration options are repeated | |
1322 | illegally. | |
1323 | ||
1324 | Further tweaks for GNU/kFreeBSD | |
1325 | ||
1326 | Add --no-wrap to msgmerge call - provides nicer .po file | |
1327 | format. | |
1328 | ||
1329 | Honour lease-time spec in dhcp-host lines even for | |
1330 | BOOTP. The user is assumed to known what they are doing in | |
1331 | this case. (Hosts without the time spec still get infinite | |
1332 | leases for BOOTP, over-riding the default in the | |
1333 | dhcp-range.) Thanks to Peter Katzmann for uncovering this. | |
1334 | ||
1335 | Fix problem matching relay-agent ids. Thanks to Michael | |
1336 | Rack for the bug report. | |
1337 | ||
1338 | Add --naptr-record option. Suggestion from Johan | |
1339 | Bergquist. | |
1340 | ||
1341 | Implement RFC 5107 server-id-override DHCP relay agent | |
1342 | option. | |
1343 | ||
1344 | Apply patches from Stefan Kruger for compilation on | |
1345 | Solaris 10 under Sun studio. | |
1346 | ||
1347 | Yet more tweaking of Linux capability code, to suppress | |
1348 | pointless wingeing from kernel 2.6.25 and above. | |
1349 | ||
1350 | Improve error checking during startup. Previously, some | |
1351 | errors which occurred during startup would be worked | |
1352 | around, with dnsmasq still starting up. Some were logged, | |
1353 | some silent. Now, they all cause a fatal error and dnsmasq | |
1354 | terminates with a non-zero exit code. The errors are those | |
1355 | associated with changing uid and gid, setting process | |
1356 | capabilities and writing the pidfile. Thanks to Uwe | |
1357 | Gansert and the Suse security team for pointing out | |
1358 | this improvement, and Bill Reimers for good implementation | |
1359 | suggestions. | |
1360 | ||
1361 | Provide NO_LARGEFILE compile option to switch off largefile | |
1362 | support when compiling against versions of uclibc which | |
1363 | don't support it. Thanks to Stephane Billiart for the patch. | |
1364 | ||
1365 | Implement random source ports for interactions with | |
1366 | upstream nameservers. New spoofing attacks have been found | |
1367 | against nameservers which do not do this, though it is not | |
1368 | clear if dnsmasq is vulnerable, since to doesn't implement | |
1369 | recursion. By default dnsmasq will now use a different | |
1370 | source port (and socket) for each query it sends | |
1371 | upstream. This behaviour can suppressed using the | |
1372 | --query-port option, and the old default behaviour | |
1373 | restored using --query-port=0. Explicit source-port | |
1374 | specifications in --server configs are still honoured. | |
1375 | ||
1376 | Replace the random number generator, for better | |
1377 | security. On most BSD systems, dnsmasq uses the | |
1378 | arc4random() RNG, which is secure, but on other platforms, | |
1379 | it relied on the C-library RNG, which may be | |
1380 | guessable and therefore allow spoofing. This release | |
1381 | replaces the libc RNG with the SURF RNG, from Daniel | |
1382 | J. Berstein's DJBDNS package. | |
1383 | ||
1384 | Don't attempt to change user or group or set capabilities | |
1385 | if dnsmasq is run as a non-root user. Without this, the | |
1386 | change from soft to hard errors when these fail causes | |
1387 | problems for non-root daemons listening on high | |
1388 | ports. Thanks to Patrick McLean for spotting this. | |
1389 | ||
1390 | Updated French translation. Thanks to Gildas Le Nadan. | |
1f15b81d SK |
1391 | |
1392 | ||
1393 | version 2.42 | |
1394 | The changelog for version 2.42 and earlier is | |
1395 | available in CHANGELOG.archive. |