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