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