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