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