blob: 0ceeccbeed9f7fffebc0338c292bcd9040d3a509 [file] [log] [blame]
Simon Kelleyc72daea2012-01-05 21:33:27 +00001version 2.60
2 Fix compilation problem in Mac OS X Lion. Thanks to Olaf
3 Flebbe for the patch.
Simon Kelley74c95c22011-10-19 09:33:39 +01004
Simon Kelleyc72daea2012-01-05 21:33:27 +00005 Fix DHCP when using --listen-address with an IP address
6 which is not the primary address of an interface.
7
8 Add --dhcp-client-update option.
9
10 Add Lua integration. Dnsmasq can now execute a DHCP
11 lease-change script written in Lua. This needs to be
12 enabled at compile time by setting HAVE_LUASCRIPT in
13 src/config.h or running "make COPTS=-DHAVE_LUASCRIPT"
14 Thanks to Jan-Piet Mens for the idea and proof-of-concept
15 implementation.
16
17 Tidied src/config.h to distinguish between
18 platform-dependent compile-time options which are selected
19 automatically, and builder-selectable compile time
20 options. Document the latter better, and describe how to
21 set them from the make command line.
22
23 Tidied up IPPROTO_IP/SOL_IP (and IPv6 equivalent)
24 confusion. IPPROTO_IP works everywhere now.
25
26 Set TOS on DHCP sockets, this improves things on busy
27 wireless networks. Thanks to Dave Taht for the patch.
28
Simon Kelley984d2fd2012-01-06 14:34:32 +000029 Determine VERSION automatically based on git magic:
30 release tags or hash values.
Simon Kelleyc72daea2012-01-05 21:33:27 +000031
Simon Kelleya2761752012-01-18 16:07:21 +000032 Improve start-up speed when reading large hosts files
33 containing many distinct addresses.
34
35 Fix problem if dnsmasq is started without the stdin,
36 stdout and stderr file descriptors open. This can manifest
37 itself as 100% CPU use. Thanks to Chris Moore for finding
38 this.
39
Simon Kelley9bbc8872012-02-09 21:33:09 +000040 Fix shell-scripting bug in bld/pkg-wrapper. Thanks to
41 Mark Mitchell for the patch.
42
Simon Kelley751d6f42012-02-10 15:24:51 +000043 Allow the TFP server or boot server in --pxe-service, to
44 be a domain name instead of an IP address. This allows for
45 round-robin to multiple servers, in the same way as
46 --dhcp-boot. A good suggestion from Cristiano Cumer.
47
Simon Kelleye5ffdb92012-02-13 14:19:25 +000048 Support BUILDDIR variable in the Makefile. Allows
Simon Kelleyb36ae192012-02-13 12:54:34 +000049 builds from multiple architectures in the same tree with eg
Simon Kelleye5ffdb92012-02-13 14:19:25 +000050 make BUILDDIR=linux
51 If BUILDDIR is not set, compilation happens in the src
Simon Kelleyb36ae192012-02-13 12:54:34 +000052 directory, as before. Suggestion from Mark Mitchell.
53
Simon Kelley1adadf52012-02-13 22:15:58 +000054 First cut at supporting DHCPv6. Support is pretty much
55 there for the sort of things the existing v4 server does,
56 including tags, options, static addresses and relay
57 support. Missing is prefix delegation. This is lightly
58 tested alpha code, it is NOT YET PRODUCTION READY. Test
59 reports would be greatly valued.
60
Simon Kelley984d2fd2012-01-06 14:34:32 +000061
Simon Kelleyc72daea2012-01-05 21:33:27 +000062version 2.59
63 Fix regression in 2.58 which caused failure to start up
64 with some combinations of dnsmasq config and IPv6 kernel
65 network config. Thanks to Brielle Bruns for the bug
66 report.
67
68 Improve dnsmasq's behaviour when network interfaces are
69 still doing duplicate address detection (DAD). Previously,
70 dnsmasq would wait up to 20 seconds at start-up for the
71 DAD state to terminate. This is broken for bridge
72 interfaces on recent Linux kernels, which don't start DAD
73 until the bridge comes up, and so can take arbitrary
74 time. The new behaviour lets dnsmasq poll for an arbitrary
75 time whilst providing service on other interfaces. Thanks
76 to Stephen Hemminger for pointing out the problem.
Simon Kelley74c95c22011-10-19 09:33:39 +010077
78
Simon Kelley7de060b2011-08-26 17:24:52 +010079version 2.58
80 Provide a definition of the SA_SIZE macro where it's
81 missing. Fixes build failure on openBSD.
82
83 Don't include a zero terminator at the end of messages
84 sent to /dev/log when /dev/log is a datagram socket.
85 Thanks to Didier Rabound for spotting the problem.
86
87 Add --dhcp-sequential-ip flag, to force allocation of IP
88 addresses in ascending order. Note that the default
89 pseudo-random mode is in general better but some
90 server-deployment applications need this.
91
92 Fix problem where a server-id of 0.0.0.0 is sent to a
93 client when a dhcp-relay is in use if a client renews a
94 lease after dnsmasq restart and before any clients on the
95 subnet get a new lease. Thanks to Mike Ruiz for assistance
96 in chasing this one down.
97
98 Don't return NXDOMAIN to an AAAA query if we have CNAME
99 which points to an A record only: NODATA is the correct
100 reply in this case. Thanks to Tom Fernandes for spotting
101 the problem.
102
103 Relax the need to supply a netmask in --dhcp-range for
104 networks which use a DHCP relay. Whilst this is still
105 desireable, in the absence of a netmask dnsmasq will use
106 a default based on the class (A, B, or C) of the address.
107 This should at least remove a cause of mysterious failure
108 for people using RFC1918 addresses and relays.
109
110 Add support for Linux conntrack connection marking. If
111 enabled with --conntrack, the connection mark for incoming
112 DNS queries will be copied to the outgoing connections
113 used to answer those queries. This allows clever firewall
114 and accounting stuff. Only available if dnsmasq is
115 compiled with HAVE_CONNTRACK and adds a dependency on
116 libnetfilter-conntrack. Thanks to Ed Wildgoose for the
117 initial idea, testing and sponsorship of this function.
118
119 Provide a sane error message when someone attempts to
120 match a tag in --dhcp-host.
121
122 Tweak the behaviour of --domain-needed, to avoid problems
123 with recursive nameservers downstream of dnsmasq. The new
124 behaviour only stops A and AAAA queries, and returns
125 NODATA rather than NXDOMAIN replies.
126
127 Efficiency fix for very large DHCP configurations, thanks
128 to James Gartrell and Mike Ruiz for help with this.
129
130 Allow the TFTP-server address in --dhcp-boot to be a
131 domain-name which is looked up in /etc/hosts. This can
132 give multiple IP addresses which are used round-robin,
133 thus doing TFTP server load-balancing. Thanks to Sushil
134 Agrawal for the patch.
135
136 When two tagged dhcp-options for a particular option
137 number are both valid, use the one which is valid without
138 a tag from the dhcp-range. Allows overriding of the value
139 of a DHCP option for a particular host as well as
140 per-network values. So
141 --dhcp-range=set:interface1,......
142 --dhcp-host=set:myhost,.....
143 --dhcp-option=tag:interface1,option:nis-domain,"domain1"
144 --dhcp-option=tag:myhost,option:nis-domain,"domain2"
145 will set the NIS-domain to domain1 for hosts in the range, but
146 override that to domain2 for a particular host.
147
148 Fix bug which resulted in truncated files and timeouts for
149 some TFTP transfers. The bug only occurs with netascii
150 transfers and needs an unfortunate relationship between
151 file size, blocksize and the number of newlines in the
152 last block before it manifests itself. Many thanks to
153 Alkis Georgopoulos for spotting the problem and providing
154 a comprehensive test-case.
155
156 Fix regression in TFTP server on *BSD platforms introduced
157 in version 2.56, due to confusion with sockaddr
158 length. Many thanks to Loïc Pefferkorn for finding this.
159
160 Support scope-ids in IPv6 addresses of nameservers from
161 /etc/resolv.conf and in --server options. Eg
162 nameserver fe80::202:a412:4512:7bbf%eth0 or
163 server=fe80::202:a412:4512:7bbf%eth0. Thanks to
164 Michael Stapelberg for the suggestion.
165
166 Update Polish translation, thanks to Jan Psota.
167
168 Update French translation. Thanks to Gildas Le Nadan.
169
170
Simon Kelley572b41e2011-02-18 18:11:18 +0000171version 2.57
172 Add patches to allow build under Android.
173
174 Provide our own header for the DNS protocol, rather than
175 relying on arpa/nameser.h. This has proved more or less
176 defective over the years and the final straw is that it's
177 effectively empty on Android.
178
179 Fix regression in 2.56 which caused hex constants in
180 configuration to be rejected if they contain the '*'
181 wildcard.
182
183 Correct wrong casts of arguments to ctype.h functions,
184 isdigit(), isxdigit() etc. Thanks to Matthias Andree for
185 spotting this.
186
187 Allow build with IDN support independently from i18n.
188 IDN support continues to be included automatically
189 when i18n is included.
190 'make COPTS=-DHAVE_IDN' is the magic incantation.
191
192 Modify check on extraneous command line junk (added in
193 2.56) so that it doesn't complain about extra _empty_
194 arguments. Otherwise this breaks libvirt.
195
196
Simon Kelley28866e92011-02-14 20:19:14 +0000197version 2.56
198 Add a patch to allow dnsmasq to get interface names right in a
199 Solaris zone. Thanks to Dj Padzensky for this.
200
201 Improve data-type parsing heuristics so that
202 --dhcp-option=option:domain-search,.
203 treats the value as a string and not an IP address.
204 Thanks to Clemens Fischer for spotting that.
205
206 Add IPv6 support to the TFTP server. Many thanks to Jan
207 'RedBully' Seiffert for the patches.
208
209 Log DNS queries at level LOG_INFO, rather then
210 LOG_DEBUG. This makes things consistent with DHCP
211 logging. Thanks to Adam Pribyl for spotting the problem.
212
213 Ensure that dnsmasq terminates cleanly when using
214 --syslog-async even if it cannot make a connection to the
215 syslogd.
216
217 Add --add-mac option. This is to support currently
218 experimental DNS filtering facilities. Thanks to Benjamin
219 Petrin for the orignal patch.
220
221 Fix bug which meant that tags were ignored in dhcp-range
222 configuration specifying PXE-proxy service. Thanks to
223 Cristiano Cumer for spotting this.
224
225 Raise an error if there is extra junk, not part of an
226 option, on the command line.
227
228 Flag a couple of log messages in cache.c as coming from
229 the DHCP subsystem. Thanks to Olaf Westrik for the patch.
230
231 Omit timestamps from logs when a) logging to stderr and
232 b) --keep-in-forground is set. The logging facility on the
233 other end of stderr can be assumned to supply them. Thanks
234 to John Hallam for the patch.
235
236 Don't complain about strings longer than 255 characters in
237 --txt-record, just split the long strings into 255
238 character chunks instead.
239
240 Fix crash on double-free. This bug can only happen when
241 dhcp-script is in use and then only in rare circumstances
242 triggered by high DHCP transaction rate and a slow
243 script. Thanks to Ferenc Wagner for finding the problem.
244
245 Only log that a file has been sent by TFTP after the
246 transfer has completed succesfully.
247
248 A good suggestion from Ferenc Wagner: extend
249 the --domain option to allow this sort of thing:
250 --domain=thekelleys.org.uk,192.168.0.0/24,local
251 which automatically creates
252 --local=/thekelleys.org.uk/
253 --local=/0.168.192.in-addr.arpa/
254
255 Tighten up syntax checking of hex contants in the config
256 file. Thanks to Fred Damen for spotting this.
257
258 Add dnsmasq logo/icon, contributed by Justin Swift. Many
259 thanks for that.
260
261 Never cache DNS replies which have the 'cd' bit set, or
262 which result from queries forwarded with the 'cd' bit
263 set. The 'cd' bit instructs a DNSSEC validating server
264 upstream to ignore signature failures and return replies
265 anyway. Without this change it's possible to pollute the
266 dnsmasq cache with bad data by making a query with the
267 'cd' bit set and subsequent queries would return this data
268 without its being marked as suspect. Thanks to Anders
269 Kaseorg for pointing out this problem.
270
271 Add --proxy-dnssec flag, for compliance with RFC
272 4035. Dnsmasq will now clear the 'ad' bit in answers returned
273 from upstream validating nameservers unless this option is
274 set.
275
276 Allow a filename of "-" for --conf-file to read
277 stdin. Suggestion from Timothy Redaelli.
278
279 Rotate the order of SRV records in replies, to provide
280 round-robin load balancing when all the priorities are
281 equal. Thanks to Peter McKinney for the suggestion.
282
283 Edit
284 contrib/MacOSX-launchd/uk.org.thekelleys.dnsmasq.plist
285 so that it doesn't log all queries to a file by
286 default. Thanks again to Peter McKinney.
287
288 By default, setting an IPv4 address for a domain but not
289 an IPv6 address causes dnsmasq to return
290 an NODATA reply for IPv6 (or vice-versa). So
291 --address=/google.com/1.2.3.4 stops IPv6 queries for
292 *google.com from being forwarded. Make it possible to
293 override this behaviour by defining the sematics if the
294 same domain appears in both --server and --address.
295 In that case, the --address has priority for the address
296 family in which is appears, but the --server has priority
297 of the address family which doesn't appear in --adddress
298 So:
299 --address=/google.com/1.2.3.4
300 --server=/google.com/#
301 will return 1.2.3.4 for IPv4 queries for *.google.com but
302 forward IPv6 queries to the normal upstream nameserver.
303 Similarly when setting an IPv6 address
304 only this will allow forwarding of IPv4 queries. Thanks to
305 William for pointing out the need for this.
306
307 Allow more than one --dhcp-optsfile and --dhcp-hostsfile
308 and make them understand directories as arguments in the
309 same way as --addn-hosts. Suggestion from John Hanks.
310
311 Ignore rebinding requests for leases we don't know
312 about. Rebind is broadcast, so we might get to overhear a
313 request meant for another DHCP server. NAKing this is
314 wrong. Thanks to Brad D'Hondt for assistance with this.
315
Simon Kelley572b41e2011-02-18 18:11:18 +0000316 Fix cosmetic bug which produced strange output when
317 dumping cache statistics with some configurations. Thanks
318 to Fedor Kozhevnikov for spotting this.
Simon Kelley28866e92011-02-14 20:19:14 +0000319
320
Simon Kelleyc52e1892010-06-07 22:01:39 +0100321version 2.55
Simon Kelley28866e92011-02-14 20:19:14 +0000322 Fix crash when /etc/ethers is in use. Thanks to
323 Gianluigi Tiesi for finding this.
Simon Kelleyc52e1892010-06-07 22:01:39 +0100324
Simon Kelley28866e92011-02-14 20:19:14 +0000325 Fix crash in netlink_multicast(). Thanks to Arno Wald for
326 finding this one.
Simon Kelleyc52e1892010-06-07 22:01:39 +0100327
Simon Kelley28866e92011-02-14 20:19:14 +0000328 Allow the empty domain "." in dhcp domain-search (119)
329 options.
Simon Kelleyc52e1892010-06-07 22:01:39 +0100330
331
332version 2.54
Simon Kelley28866e92011-02-14 20:19:14 +0000333 There is no version 2.54 to avoid confusion with 2.53,
334 which incorrectly identifies itself as 2.54.
Simon Kelleyc52e1892010-06-07 22:01:39 +0100335
336
Simon Kelley8ef5ada2010-06-03 19:42:45 +0100337version 2.53
338 Fix failure to compile on Debian/kFreeBSD. Thanks to
339 Axel Beckert and Petr Salinger.
340
341 Fix code to avoid scary strict-aliasing warnings
342 generated by gcc 4.4.
343
344 Added FAQ entry warning about DHCP failures with Vista
345 when firewalls block 255.255.255.255.
346
347 Fixed bug which caused bad things to happen if a
348 resolv.conf file which exists is subsequently removed.
349 Thanks to Nikolai Saoukh for the patch.
350
351 Rationalised the DHCP tag system. Every configuration item
352 which can set a tag does so by adding "set:<tag>" and
353 every configuration item which is conditional on a tag is
354 made so by "tag:<tag>". The NOT operator changes to '!',
355 which is a bit more intuitive too. Dhcp-host directives
356 can set more than one tag now. The old '#' NOT,
357 "net:" prefix and no-prefixes are still honoured, so
358 no existing config file needs to be changed, but
359 the documentation and new-style config files should be
360 much less confusing.
361
362 Added --tag-if to allow boolean operations on tags.
363 This allows complicated logic to be clearer and more
364 general. A great suggestion from Richard Voigt.
365
366 Add broadcast/unicast information to DHCP logging.
367
368 Allow --dhcp-broadcast to be unconditional.
369
370 Fixed incorrect behaviour with NOT <tag> conditionals in
371 dhcp-options. Thanks to Max Turkewitz for assistance
372 finding this.
373
374 If we send vendor-class encapsulated options based on the
375 vendor-class supplied by the client, and no explicit
376 vendor-class option is given, echo back the vendor-class
377 from the client.
378
379 Fix bug which stopped dnsmasq from matching both a
380 circuitid and a remoteid. Thanks to Ignacio Bravo for
381 finding this.
382
383 Add --dhcp-proxy, which makes it possible to configure
384 dnsmasq to use a DHCP relay agent as a full proxy, with
385 all DHCP messages passing through the proxy. This is
386 useful if the relay adds extra information to the packets
387 it forwards, but cannot be configured with the RFC 5107
388 server-override option.
389
390 Added interface:<iface name> part to dhcp-range. The
391 semantics of this are very odd at first sight, but it
392 allows a single line of the form
393 dhcp-range=interface:virt0,192.168.0.4,192.168.0.200
394 to be added to dnsmasq configuration which then supplies
395 DHCP and DNS services to that interface, without affecting
396 what services are supplied to other interfaces and
397 irrespective of the existance or lack of
398 interface=<interface>
399 lines elsewhere in the dnsmasq configuration. The idea is
400 that such a line can be added automatically by libvirt
401 or equivalent systems, without disturbing any manual
402 configuration.
403
404 Similarly to the above, allow --enable-tftp=<interface>
405
406 Allow a TFTP root to be set separately for requests via
407 different interfaces, --tftp-root=<path>,<interface>
408
409 Correctly handle and log clashes between CNAMES and
410 DNS names being given to DHCP leases. This fixes a bug
411 which caused nonsense IP addresses to be logged. Thanks to
412 Sergei Zhirikov for finding and analysing the problem.
413
414 Tweak flush_log so as to avoid leaving the log
415 file in non-blocking mode. O_NONBLOCK is a property of the
416 file, not the process/descriptor.
417
418 Fix contrib/Solaris10/create_package
419 (/usr/man -> /usr/share/man) Thanks to Vita Batrla.
420
421 Fix a problem where, if a client got a lease, then went
422 to another subnet and got another lease, then moved back,
423 it couldn't resume the old lease, but would instead get
424 a new address. Thanks to Leonardo Rodrigues for spotting
425 this and testing the fix.
426
427 Fix weird bug which sometimes omitted certain characters
428 from the start of quoted strings in dhcp-options. Thanks
429 to Dayton Turner for spotting the problem.
430
431 Add facility to redirect some domains to the standard
432 upstream servers: this allows something like
433 --server=/google.com/1.2.3.4 --server=/www.google.com/#
434 which will send queries for *.google.com to 1.2.3.4,
435 except *www.google.com which will be forwarded as usual.
436 Thanks to AJ Weber for prompting this addition.
437
438 Improve the hash-algorithm used to generate IP addresses
439 from MAC addresses during initial DHCP address
440 allocation. This improves performance when large numbers
441 of hosts with similar MAC addresses all try and get an IP
442 address at the same time. Thanks to Paul Smith for his
443 work on this.
444
445 Tweak DHCP code so that --bridge-interface can be used to
446 select which IP alias of an interface should be used for
447 DHCP purposes on Linux. If eth0 has an alias eth0:dhcp
448 then adding --bridge-interface=eth0:dhcp,eth0 will use
449 the address of eth0:dhcp to determine the correct subnet
450 for DHCP address allocation. Thanks to Pawel Golaszewski
451 for prompting this and Eric Cooper for further testing.
452
453 Add --dhcp-generate-names. Suggestion by Ferenc Wagner.
454
455 Tweak DNS server selection algorithm when there is more
456 than one server available for a domain, eg.
457 --server=/mydomain/1.1.1.1
458 --server=/mydomain/2.2.2.2
459 Thanks to Alberto Cuesta-Canada for spotting a weakness
460 here.
461
462 Add --max-ttl. Thanks to Fredrik Ringertz for the patch.
463
464 Allow --log-facility=- to force all logging to
465 stderr. Suggestion from Clemens Fischer.
466
467 Fix regression which caused configuration like
468 --address=/.domain.com/1.2.3.4 to be rejected. The dot to the
469 left of the domain has been implied and not required for a
470 long time, but it should be accepted for backward
471 compatibility. Thanks to Andrew Burcin for spotting this.
472
473 Add --rebind-domain-ok and --rebind-localhost-ok.
474 Suggestion from Clemens Fischer.
475
476 Log replies to queries of type TXT, when --log-queries
477 is set.
478
479 Fix compiler warnings when compiled with -DNO_DHCP. Thanks
480 to Shantanu Gadgil for the patch.
481
482 Updated French translation. Thanks to Gildas Le Nadan.
483
484 Updated Polish translation. Thanks to Jan Psota.
485
486 Updated German translation. Thanks to Matthias Andree.
487
488 Added contrib/static-arp, thanks to Darren Hoo.
489
490 Fix corruption of the domain when a name from /etc/hosts
491 overrides one supplied by a DHCP client. Thanks to Fedor
492 Kozhevnikov for spotting the problem.
493
494 Updated Spanish translation. Thanks to Chris Chatham.
495
496
Simon Kelley316e2732010-01-22 20:16:09 +0000497version 2.52
498 Work around a Linux kernel bug which insists that the
499 length of the option passed to setsockopt must be at least
500 sizeof(int) bytes, even if we're calling SO_BINDTODEVICE
501 and the device name is "lo". Note that this is fixed
502 in kernel 2.6.31, but the workaround is harmless and
503 allows earlier kernels to be used. Also fix dnsmasq
504 bug which reported the wrong address when this failed.
505 Thanks to Fedor for finding this.
506
507 The API for IPv6 PKTINFO changed around Linux kernel
508 2.6.14. Workaround the case where dnsmasq is compiled
509 against newer headers, but then run on an old kernel:
510 necessary for some *WRT distros.
511
512 Re-read the set of network interfaces when re-loading
513 /etc/resolv.conf if --bind-interfaces is not set. This
514 handles the case that loopback interfaces do not exist
515 when dnsmasq is first started.
516
517 Tweak the PXE code to support port 4011. This should
518 reduce broadcasts and make things more reliable when other
519 servers are around. It also improves inter-operability
520 with certain clients.
521
522 Make a pxe-service configuration with no filename or boot
523 service type legal: this does a local boot. eg.
524 pxe-service=x86PC, "Local boot"
525
526 Be more conservative in detecting "A for A"
527 queries. Dnsmasq checks if the name in a type=A query looks
528 like a dotted-quad IP address and answers the query itself
529 if so, rather than forwarding it. Previously dnsmasq
530 relied in the library function inet_addr() to convert
531 addresses, and that will accept some things which are
532 confusing in this context, like 1.2.3 or even just
533 1234. Now we only do A for A processing for four decimal
534 numbers delimited by dots.
535
536 A couple of tweaks to fix compilation on Solaris. Thanks
537 to Joel Macklow for help with this.
538
539 Another Solaris compilation tweak, needed for Solaris
540 2009.06. Thanks to Lee Essen for that.
541
542 Added extract packaging stuff from Lee Essen to
543 contrib/Solaris10.
544
545 Increased the default limit on number of leases to 1000
546 (from 150). This is mainly a defence against DoS attacks,
547 and for the average "one for two class C networks"
548 installation, IP address exhaustion does that just as
549 well. Making the limit greater than the number of IP
550 addresses available in such an installation removes a
551 surprise which otherwise can catch people out.
552
553 Removed extraneous trailing space in the value of the
554 DNSMASQ_TIME_REMAINING DNSMASQ_LEASE_LENGTH and
555 DNSMASQ_LEASE_EXPIRES environment variables. Thanks to
556 Gildas Le Nadan for spotting this.
557
558 Provide the network-id tags for a DHCP transaction to
559 the lease-change script in the environment variable
560 DNSMASQ_TAGS. A good suggestion from Gildas Le Nadan.
561
562 Add support for RFC3925 "Vendor-Identifying Vendor
563 Options". The syntax looks like this:
564 --dhcp-option=vi-encap:<enterprise number>, .........
565
566 Add support to --dhcp-match to allow matching against
567 RFC3925 "Vendor-Identifying Vendor Classes". The syntax
568 looks like this:
569 --dhcp-match=tag,vi-encap<enterprise number>, <value>
570
571 Add some application specific code to assist in
572 implementing the Broadband forum TR069 CPE-WAN
573 specification. The details are in contrib/CPE-WAN/README
574
575 Increase the default DNS packet size limit to 4096, as
576 recommended by RFC5625 section 4.4.3. This can be
577 reconfigured using --edns-packet-max if needed. Thanks to
578 Francis Dupont for pointing this out.
579
Simon Kelley8ef5ada2010-06-03 19:42:45 +0100580 Rewrite query-ids even for TSIG signed packets, since
Simon Kelley316e2732010-01-22 20:16:09 +0000581 this is allowed by RFC5625 section 4.5.
582
583 Use getopt_long by default on OS X. It has been supported
584 since version 10.3.0. Thanks to Arek Dreyer for spotting
585 this.
586
587 Added up-to-date startup configuration for MacOSX/launchd
588 in contrib/MacOSX-launchd. Thanks to Arek Dreyer for
589 providing this.
590
591 Fix link error when including Dbus but excluding DHCP.
592 Thanks to Oschtan for the bug report.
593
594 Updated French translation. Thanks to Gildas Le Nadan.
595
596 Updated Polish translation. Thanks to Jan Psota.
597
598 Updated Spanish translation. Thanks to Chris Chatham.
599
Simon Kelley8ef5ada2010-06-03 19:42:45 +0100600 Fixed confusion about domains, when looking up DHCP hosts
601 in /etc/hosts. This could cause spurious "Ignoring
602 domain..." messages. Thanks to Fedor Kozhevnikov for
603 finding and analysing the problem.
Simon Kelley316e2732010-01-22 20:16:09 +0000604
Simon Kelley8ef5ada2010-06-03 19:42:45 +0100605
Simon Kelley1f15b812009-10-13 17:49:32 +0100606version 2.51
607 Add support for internationalised DNS. Non-ASCII characters
608 in domain names found in /etc/hosts, /etc/ethers and
609 /etc/dnsmasq.conf will be correctly handled by translation to
610 punycode, as specified in RFC3490. This function is only
611 available if dnsmasq is compiled with internationalisation
612 support, and adds a dependency on GNU libidn. Without i18n
613 support, dnsmasq continues to be compilable with just
614 standard tools. Thanks to Yves Dorfsman for the
615 suggestion.
616
617 Add two more environment variables for lease-change scripts:
618 First, DNSMASQ_SUPPLIED_HOSTNAME; this is set to the hostname
619 supplied by a client, even if the actual hostname used is
620 over-ridden by dhcp-host or dhcp-ignore-names directives.
621 Also DNSMASQ_RELAY_ADDRESS which gives the address of
622 a DHCP relay, if used.
623 Suggestions from Michael Rack.
624
625 Fix regression which broke echo of relay-agent
626 options. Thanks to Michael Rack for spotting this.
627
628 Don't treat option 67 as being interchangeable with
629 dhcp-boot parameters if it's specified as
630 dhcp-option-force.
631
632 Make the code to call scripts on lease-change compile-time
633 optional. It can be switched off by editing src/config.h
634 or building with "make COPTS=-DNO_SCRIPT".
635
636 Make the TFTP server cope with filenames from Windows/DOS
637 which use '\' as pathname separator. Thanks to Ralf for
638 the patch.
639
640 Updated Polish translation. Thanks to Jan Psota.
641
642 Warn if an IP address is duplicated in /etc/ethers. Thanks
643 to Felix Schwarz for pointing this out.
644
645 Teach --conf-dir to take an option list of file suffices
646 which will be ignored when scanning the directory. Useful
647 for backup files etc. Thanks to Helmut Hullen for the
648 suggestion.
649
650 Add new DHCP option named tftpserver-address, which
651 corresponds to the third argument of dhcp-boot. This
652 allows the complete functionality of dhcp-boot to be
653 replicated with dhcp-option. Useful when using
654 dhcp-optsfile.
655
656 Test which upstream nameserver to use every 10 seconds
657 or 50 queries and not just when a query times out and
658 is retried. This should improve performance when there
659 is a slow nameserver in the list. Thanks to Joe for the
660 suggestion.
661
662 Don't do any PXE processing, even for clients with the
663 correct vendorclass, unless at least one pxe-prompt or
664 pxe-service option is given. This stops dnsmasq
665 interfering with proxy PXE subsystems when it is just
666 the DHCP server. Thanks to Spencer Clark for spotting this.
667
668 Limit the blocksize used for TFTP transfers to a value
669 which avoids packet fragmentation, based on the MTU of the
670 local interface. Many netboot ROMs can't cope with
671 fragmented packets.
672
673 Honour dhcp-ignore configuration for PXE and proxy-PXE
674 requests. Thanks to Niels Basjes for the bug report.
675
676 Updated French translation. Thanks to Gildas Le Nadan.
677
678
Simon Kelley77e94da2009-08-31 17:32:17 +0100679version 2.50
Simon Kelley1f15b812009-10-13 17:49:32 +0100680 Fix security problem which allowed any host permitted to
Simon Kelley77e94da2009-08-31 17:32:17 +0100681 do TFTP to possibly compromise dnsmasq by remote buffer
682 overflow when TFTP enabled. Thanks to Core Security
683 Technologies and Iván Arce, Pablo Hernán Jorge, Alejandro
684 Pablo Rodriguez, Martín Coco, Alberto Soliño Testa and
685 Pablo Annetta. This problem has Bugtraq id: 36121
686 and CVE: 2009-2957
687
688 Fix a problem which allowed a malicious TFTP client to
689 crash dnsmasq. Thanks to Steve Grubb at Red Hat for
690 spotting this. This problem has Bugtraq id: 36120 and
691 CVE: 2009-2958
692
693
Simon Kelley03a97b62009-06-10 20:55:49 +0100694version 2.49
695 Fix regression in 2.48 which disables the lease-change
696 script. Thanks to Jose Luis Duran for spotting this.
697
698 Log TFTP "file not found" errors. These were not logged,
699 since a normal PXELinux boot generates many of them, but
700 the lack of the messages seems to be more confusing than
701 routinely seeing them when there is no real error.
702
703 Update Spanish translation. Thanks to Chris Chatham.
704
705
Simon Kelley7622fc02009-06-04 20:32:05 +0100706version 2.48
707 Archived the extensive, backwards, changelog to
708 CHANGELOG.archive. The current changelog now runs from
709 version 2.43 and runs conventionally.
Simon Kelley9e4abcb2004-01-22 19:47:41 +0000710
Simon Kelley7622fc02009-06-04 20:32:05 +0100711 Fixed bug which broke binding of servers to physical
712 interfaces when interface names were longer than four
713 characters. Thanks to MURASE Katsunori for the patch.
Simon Kelley9e4abcb2004-01-22 19:47:41 +0000714
Simon Kelley7622fc02009-06-04 20:32:05 +0100715 Fixed netlink code to check that messages come from the
716 correct source, and not another userspace process. Thanks
717 to Steve Grubb for the patch.
Simon Kelley9e4abcb2004-01-22 19:47:41 +0000718
Simon Kelley7622fc02009-06-04 20:32:05 +0100719 Maintainability drive: removed bug and missing feature
720 workarounds for some old platforms. Solaris 9, OpenBSD
721 older than 4.1, Glibc older than 2.2, Linux 2.2.x and
722 DBus older than 1.1.x are no longer supported.
Simon Kelley9e4abcb2004-01-22 19:47:41 +0000723
Simon Kelley7622fc02009-06-04 20:32:05 +0100724 Don't read included configuration files more than once:
725 allows complex configuration structures without problems.
Simon Kelley9e4abcb2004-01-22 19:47:41 +0000726
Simon Kelley7622fc02009-06-04 20:32:05 +0100727 Mark log messages from the various subsystems in dnsmasq:
728 messages from the DHCP subsystem now have the ident string
729 "dnsmasq-dhcp" and messages from TFTP have ident
730 "dnsmasq-tftp". Thanks to Olaf Westrik for the patch.
Simon Kelley9e4abcb2004-01-22 19:47:41 +0000731
Simon Kelley7622fc02009-06-04 20:32:05 +0100732 Fix possible infinite DHCP protocol loop when an IP
733 address nailed to a hostname (not a MAC address) and a
734 host sometimes provides the name, sometimes not.
Simon Kelley9e4abcb2004-01-22 19:47:41 +0000735
Simon Kelley7622fc02009-06-04 20:32:05 +0100736 Allow --addn-hosts to take a directory: all the files
737 in the directory are read. Thanks to Phil Cornelius for
738 the suggestion.
Simon Kelley9e4abcb2004-01-22 19:47:41 +0000739
Simon Kelley7622fc02009-06-04 20:32:05 +0100740 Support --bridge-interface on all platforms, not just BSD.
Simon Kelley1ab84e22004-01-29 16:48:35 +0000741
Simon Kelley7622fc02009-06-04 20:32:05 +0100742 Added support for advanced PXE functions. It's now
743 possible to define a prompt and menu options which will
744 be displayed when a client PXE boots. It's also possible to
745 hand-off booting to other boot servers. Proxy-DHCP, where
746 dnsmasq just supplies the PXE information and another DHCP
747 server does address allocation, is also allowed. See the
748 --pxe-prompt and --pxe-service keywords. Thanks to
749 Alkis Georgopoulos for the suggestion and Guilherme Moro
750 and Michael Brown for assistance.
Simon Kelley1ab84e22004-01-29 16:48:35 +0000751
Simon Kelley7622fc02009-06-04 20:32:05 +0100752 Improvements to DHCP logging. Thanks to Tom Metro for
753 useful suggestions.
754
755 Add ability to build dnsmasq without DHCP support. To do
756 this, edit src/config.h or build with
757 "make COPTS=-DNO_DHCP". Thanks to Mahavir Jain for the patch.
758
759 Added --test command-line switch - syntax check
760 configuration files only.
Simon Kelley33820b72004-04-03 21:10:00 +0100761
Simon Kelley7622fc02009-06-04 20:32:05 +0100762 Updated French translation. Thanks to Gildas Le Nadan.
Simon Kelley9009d742008-11-14 20:04:27 +0000763
Simon Kelley73a08a22009-02-05 20:28:08 +0000764
765version 2.47
766 Updated French translation. Thanks to Gildas Le Nadan.
767
768 Fixed interface enumeration code to work on NetBSD
769 5.0. Thanks to Roy Marples for the patch.
770
771 Updated config.h to use the same location for the lease
772 file on NetBSD as the other *BSD variants. Also allow
773 LEASEFILE and CONFFILE symbols to be overriden in CFLAGS.
774
775 Handle duplicate address detection on IPv6 more
776 intelligently. In IPv6, an interface can have an address
777 which is not usable, because it is still undergoing DAD
778 (such addresses are marked "tentative"). Attempting to
779 bind to an address in this state returns an error,
780 EADDRNOTAVAIL. Previously, on getting such an error,
781 dnsmasq would silently abandon the address, and never
782 listen on it. Now, it retries once per second for 20
783 seconds before generating a fatal error. 20 seconds should
784 be long enough for any DAD process to complete, but can be
785 adjusted in src/config.h if necessary. Thanks to Martin
786 Krafft for the bug report.
787
788 Add DBus introspection. Patch from Jeremy Laine.
789
790 Update Dbus configuration file. Patch from Colin Walters.
791 Fix for this bug:
792 http://bugs.freedesktop.org/show_bug.cgi?id=18961
793
794 Support arbitrarily encapsulated DHCP options, suggestion
795 and initial patch from Samium Gromoff. This is useful for
796 (eg) gPXE, which expect all its private options to be
797 encapsulated inside a single option 175. So, eg,
798
799 dhcp-option = encap:175, 190, "iscsi-client0"
800 dhcp-option = encap:175, 191, "iscsi-client0-secret"
801
802 will provide iSCSI parameters to gPXE.
803
804 Enhance --dhcp-match to allow testing of the contents of a
805 client-sent option, as well as its presence. This
806 application in mind for this is RFC 4578
807 client-architecture specifiers, but it's generally useful.
808 Joey Korkames suggested the enhancement.
809
810 Move from using the IP_XMIT_IF ioctl to IP_BOUND_IF on
811 OpenSolaris. Thanks to Bastian Machek for the heads-up.
812
813 No longer complain about blank lines in
814 /etc/ethers. Thanks to Jon Nelson for the patch.
815
816 Fix binding of servers to physical devices, eg
817 --server=/domain/1.2.3.4@eth0 which was broken from 2.43
818 onwards unless --query-port=0 set. Thanks to Peter Naulls
819 for the bug report.
820
821 Reply to DHCPINFORM requests even when the supplied ciaddr
822 doesn't fall in any dhcp-range. In this case it's not
823 possible to supply a complete configuration, but
824 individually-configured options (eg PAC) may be useful.
825
826 Allow the source address of an alias to be a range:
827 --alias=192.168.0.0,10.0.0.0,255.255.255.0 maps the whole
828 subnet 192.168.0.0->192.168.0.255 to 10.0.0.0->10.0.0.255,
829 as before.
830 --alias=192.168.0.10-192.168.0.40,10.0.0.0,255.255.255.0
831 maps only the 192.168.0.10->192.168.0.40 region. Thanks to
832 Ib Uhrskov for the suggestion.
833
834 Don't dynamically allocate DHCP addresses which may break
835 Windows. Addresses which end in .255 or .0 are broken in
836 Windows even when using supernetting.
837 --dhcp-range=192.168.0.1,192.168.1.254,255,255,254.0 means
838 192.168.0.255 is a valid IP address, but not for Windows.
839 See Microsoft KB281579. We therefore no longer allocate
840 these addresses to avoid hard-to-diagnose problems.
841
842 Update Polish translation. Thanks to Jan Psota.
843
844 Delete the PID-file when dnsmasq shuts down. Note that by
845 this time, dnsmasq is normally not running as root, so
846 this will fail if the PID-file is stored in a root-owned
847 directory; such failure is silently ignored. To take
848 advantage of this feature, the PID-file must be stored in a
849 directory owned and write-able by the user running
850 dnsmasq.
Simon Kelley7622fc02009-06-04 20:32:05 +0100851
852
853version 2.46
854 Allow --bootp-dynamic to take a netid tag, so that it may
855 be selectively enabled. Thanks to Olaf Westrik for the
856 suggestion.
857
858 Remove ISC-leasefile reading code. This has been
859 deprecated for a long time, and last time I removed it, it
860 ended up going back by request of one user. This time,
861 it's gone for good; otherwise it would need to be
862 re-worked to support multiple domains (see below).
863
864 Support DHCP clients in multiple DNS domains. This is a
865 long-standing request. Clients are assigned to a domain
866 based in their IP address.
867
868 Add --dhcp-fqdn flag, which changes behaviour if DNS names
869 assigned to DHCP clients. When this is set, there must be
870 a domain associated with each client, and only
871 fully-qualified domain names are added to the DNS. The
872 advantage is that the only the FQDN needs to be unique,
873 so that two or more DHCP clients can share a hostname, as
874 long as they are in different domains.
875
876 Set environment variable DNSMASQ_DOMAIN when invoking
877 lease-change script. This may be useful information to
878 have now that it's variable.
879
880 Tighten up data-checking code for DNS packet
881 handling. Thanks to Steve Dodd who found certain illegal
882 packets which could crash dnsmasq. No memory overwrite was
883 possible, so this is not a security issue beyond the DoS
884 potential.
885
886 Update example config dhcp option 47, the previous
887 suggestion generated an illegal, zero-length,
888 option. Thanks to Matthias Andree for finding this.
889
890 Rewrite hosts-file reading code to remove the limit of
891 1024 characters per line. John C Meuser found this.
892
893 Create a net-id tag with the name of the interface on
894 which the DHCP request was received.
895
896 Fixed minor memory leak in DBus code, thanks to Jeremy
897 Laine for the patch.
898
899 Emit DBus signals as the DHCP lease database
900 changes. Thanks to Jeremy Laine for the patch.
901
902 Allow for more that one MAC address in a dhcp-host
903 line. This configuration tells dnsmasq that it's OK to
904 abandon a DHCP lease of the fixed address to one MAC
905 address, if another MAC address in the dhcp-host statement
906 asks for an address. This is useful to give a fixed
907 address to a host which has two network interfaces
908 (say, a laptop with wired and wireless interfaces.)
909 It's very important to ensure that only one interface
910 at a time is up, since dnsmasq abandons the first lease
911 and re-uses the address before the leased time has
912 elapsed. John Gray suggested this.
913
914 Tweak the response to a DHCP request packet with a wrong
915 server-id when --dhcp-authoritative is set; dnsmasq now
916 returns a DHCPNAK, rather than silently ignoring the
917 packet. Thanks to Chris Marget for spotting this
918 improvement.
919
920 Add --cname option. This provides a limited alias
921 function, usable for DHCP names. Thanks to AJ Weber for
922 suggestions on this.
923
924 Updated contrib/webmin with latest version from Neil
925 Fisher.
926
927 Updated Polish translation. Thanks to Jan Psota.
928
929 Correct the text names for DHCP options 64 and 65 to be
930 "nis+-domain" and "nis+-servers".
931
932 Updated Spanish translation. Thanks to Chris Chatham.
933
934 Force re-reading of /etc/resolv.conf when an "interface
935 up" event occurs.
936
937
938version 2.45
939 Fix total DNS failure in release 2.44 unless --min-port
940 specified. Thanks to Steven Barth and Grant Coady for
941 bugreport. Also reject out-of-range port spec, which could
942 break things too: suggestion from Gilles Espinasse.
943
944
945version 2.44
946 Fix crash when unknown client attempts to renew a DHCP
947 lease, problem introduced in version 2.43. Thanks to
948 Carlos Carvalho for help chasing this down.
949
950 Fix potential crash when a host which doesn't have a lease
951 does DHCPINFORM. Again introduced in 2.43. This bug has
952 never been reported in the wild.
953
954 Fix crash in netlink code introduced in 2.43. Thanks to
955 Jean Wolter for finding this.
956
957 Change implementation of min_port to work even if min-port
958 is large.
959
960 Patch to enable compilation of latest Mac OS X. Thanks to
961 David Gilman.
962
963 Update Spanish translation. Thanks to Christopher Chatham.
964
965
966version 2.43
967 Updated Polish translation. Thanks to Jan Psota.
968
969 Flag errors when configuration options are repeated
970 illegally.
971
972 Further tweaks for GNU/kFreeBSD
973
974 Add --no-wrap to msgmerge call - provides nicer .po file
975 format.
976
977 Honour lease-time spec in dhcp-host lines even for
978 BOOTP. The user is assumed to known what they are doing in
979 this case. (Hosts without the time spec still get infinite
980 leases for BOOTP, over-riding the default in the
981 dhcp-range.) Thanks to Peter Katzmann for uncovering this.
982
983 Fix problem matching relay-agent ids. Thanks to Michael
984 Rack for the bug report.
985
986 Add --naptr-record option. Suggestion from Johan
987 Bergquist.
988
989 Implement RFC 5107 server-id-override DHCP relay agent
990 option.
991
992 Apply patches from Stefan Kruger for compilation on
993 Solaris 10 under Sun studio.
994
995 Yet more tweaking of Linux capability code, to suppress
996 pointless wingeing from kernel 2.6.25 and above.
997
998 Improve error checking during startup. Previously, some
999 errors which occurred during startup would be worked
1000 around, with dnsmasq still starting up. Some were logged,
1001 some silent. Now, they all cause a fatal error and dnsmasq
1002 terminates with a non-zero exit code. The errors are those
1003 associated with changing uid and gid, setting process
1004 capabilities and writing the pidfile. Thanks to Uwe
1005 Gansert and the Suse security team for pointing out
1006 this improvement, and Bill Reimers for good implementation
1007 suggestions.
1008
1009 Provide NO_LARGEFILE compile option to switch off largefile
1010 support when compiling against versions of uclibc which
1011 don't support it. Thanks to Stephane Billiart for the patch.
1012
1013 Implement random source ports for interactions with
1014 upstream nameservers. New spoofing attacks have been found
1015 against nameservers which do not do this, though it is not
1016 clear if dnsmasq is vulnerable, since to doesn't implement
1017 recursion. By default dnsmasq will now use a different
1018 source port (and socket) for each query it sends
1019 upstream. This behaviour can suppressed using the
1020 --query-port option, and the old default behaviour
1021 restored using --query-port=0. Explicit source-port
1022 specifications in --server configs are still honoured.
1023
1024 Replace the random number generator, for better
1025 security. On most BSD systems, dnsmasq uses the
1026 arc4random() RNG, which is secure, but on other platforms,
1027 it relied on the C-library RNG, which may be
1028 guessable and therefore allow spoofing. This release
1029 replaces the libc RNG with the SURF RNG, from Daniel
1030 J. Berstein's DJBDNS package.
1031
1032 Don't attempt to change user or group or set capabilities
1033 if dnsmasq is run as a non-root user. Without this, the
1034 change from soft to hard errors when these fail causes
1035 problems for non-root daemons listening on high
1036 ports. Thanks to Patrick McLean for spotting this.
1037
1038 Updated French translation. Thanks to Gildas Le Nadan.
Simon Kelley1f15b812009-10-13 17:49:32 +01001039
1040
1041version 2.42
1042 The changelog for version 2.42 and earlier is
1043 available in CHANGELOG.archive.