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