Diff for /embedaddon/dnsmasq/CHANGELOG.archive between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2013/07/29 19:37:40 version 1.1.1.2, 2021/03/17 00:56:46
Line 56  release 0.95  Major rewrite: remove calls to gethostby Line 56  release 0.95  Major rewrite: remove calls to gethostby
               any more memory after start-up. The NAT-like forwarding was                any more memory after start-up. The NAT-like forwarding was
               inspired by a suggestion from Eli Chen <eli@routefree.com>                inspired by a suggestion from Eli Chen <eli@routefree.com>
   
release 0.96  Fixed embarrasing thinko in cache linked-list code.release 0.96  Fixed embarrassing thinko in cache linked-list code.
                                                             
 release 0.98  Some enhancements and bug-fixes.   release 0.98  Some enhancements and bug-fixes. 
               Thanks to "Denis Carre" <denis.carre@laposte.net> and Martin                 Thanks to "Denis Carre" <denis.carre@laposte.net> and Martin 
Line 78  release 0.98  Some enhancements and bug-fixes.  Line 78  release 0.98  Some enhancements and bug-fixes. 
                   ids, to thwart DNS spoofers.                    ids, to thwart DNS spoofers.
               (7) Dnsmasq no longer forwards queries when the                 (7) Dnsmasq no longer forwards queries when the 
                   "recursion desired" bit is not set in the header.                    "recursion desired" bit is not set in the header.
              (8) Fixed getopt code to work on compliers with unsigned char.              (8) Fixed getopt code to work on compilers with unsigned char.
                               
 release 0.991 Added -b flag: when set causes dnsmasq to always answer  release 0.991 Added -b flag: when set causes dnsmasq to always answer
               reverse queries on the RFC 1918 private IP space itself and                reverse queries on the RFC 1918 private IP space itself and
Line 88  release 0.991 Added -b flag: when set causes dnsmasq t Line 88  release 0.991 Added -b flag: when set causes dnsmasq t
               Fixed a bug which stopped dnsmasq working on a box with                Fixed a bug which stopped dnsmasq working on a box with
               two or more interfaces with the same IP address.                 two or more interfaces with the same IP address. 
   
              Fixed cacheing of CNAMEs. Previously, a CNAME which pointed              Fixed caching of CNAMEs. Previously, a CNAME which pointed
               to  a name with many A records would not have all the addresses                to  a name with many A records would not have all the addresses
               returned when being answered from the cache.                returned when being answered from the cache.
   
Line 191  release 1.1   Added --user argument to allow user to c Line 191  release 1.1   Added --user argument to allow user to c
   
 release 1.2   Added IPv6 DNS record support. AAAA records are cached  release 1.2   Added IPv6 DNS record support. AAAA records are cached
               and read from /etc/hosts. Reverse-lookups in the                and read from /etc/hosts. Reverse-lookups in the
              ip6.int and ip6.arpa domains are suppored. Dnsmasq can              ip6.int and ip6.arpa domains are supported. Dnsmasq can
               talk to upstream servers via IPv6 if it finds IP6 addresses                talk to upstream servers via IPv6 if it finds IP6 addresses
               in /etc/resolv.conf and it offers DNS service automatically                in /etc/resolv.conf and it offers DNS service automatically
               if IPv6 support is present in the kernel.                if IPv6 support is present in the kernel.
Line 214  release 1.3   Some versions of the Linux kernel return Line 214  release 1.3   Some versions of the Linux kernel return
               starting, rather than after the first query - principle                 starting, rather than after the first query - principle 
               of least surprise applies here.                     of least surprise applies here.     
   
release 1.4   Fix a bug with DHPC lease parsing which broke inrelease 1.4   Fix a bug with DHCP lease parsing which broke in
               non-UTC timezones. Thanks to Mark Wormgoor for                non-UTC timezones. Thanks to Mark Wormgoor for
               spotting and diagnosing this. Fixed versions in                spotting and diagnosing this. Fixed versions in
               the .spec files this time. Fixed bug in Suse startup                the .spec files this time. Fixed bug in Suse startup
Line 258  release 1.7   Fix a problem with cache not clearing pr Line 258  release 1.7   Fix a problem with cache not clearing pr
               on receipt of SIGHUP. Bug spotted by Sat Deshpande.                on receipt of SIGHUP. Bug spotted by Sat Deshpande.
   
               In group-id changing code:                In group-id changing code:
              1) Drop supplimentary groups.              1) Drop supplementary groups.
               2) Change gid before dropping root (patch from Soewono Effendi.)                2) Change gid before dropping root (patch from Soewono Effendi.)
               3) Change group to "dip" if it exists, to allow access                3) Change group to "dip" if it exists, to allow access
                  to /etc/ppp/resolv.conf (suggestion from Jorg Sommer.)                   to /etc/ppp/resolv.conf (suggestion from Jorg Sommer.)
Line 297  release 1.9   Fixes to rpm .spec files. Line 297  release 1.9   Fixes to rpm .spec files.
               required. The difference is not really visible with                required. The difference is not really visible with
               bloated libcs like glibc, but should dramatically reduce                bloated libcs like glibc, but should dramatically reduce
               memory requirements when linked against ulibc for use on                memory requirements when linked against ulibc for use on
              embeded routers, and that's the point really. Thanks to              embedded routers, and that's the point really. Thanks to
               Matthew Natalier for prompting this.                   Matthew Natalier for prompting this.   
   
               Changed debug mode (-d) so that all logging appears on                Changed debug mode (-d) so that all logging appears on
Line 319  release 1.9   Fixes to rpm .spec files. Line 319  release 1.9   Fixes to rpm .spec files.
               uClinux. Thanks to Matthew Natalier for uClinux stuff.                 uClinux. Thanks to Matthew Natalier for uClinux stuff. 
   
 release 1.10  Log warnings if resolv.conf or dhcp.leases are not  release 1.10  Log warnings if resolv.conf or dhcp.leases are not
              accessable for any reason, as suggested by Hinrich Eilts.              accessible for any reason, as suggested by Hinrich Eilts.
   
               Fixed wrong address printing in error message about                Fixed wrong address printing in error message about
               no interface with address.                no interface with address.
   
              Updated docs and split installation instuctions into setup.html.              Updated docs and split installation instructions into setup.html.
   
               Fix bug in CNAME chasing code: One CNAME pointing                Fix bug in CNAME chasing code: One CNAME pointing
               to many A records would lose A records after the                 to many A records would lose A records after the 
Line 346  release 1.10  Log warnings if resolv.conf or dhcp.leas Line 346  release 1.10  Log warnings if resolv.conf or dhcp.leas
   
               Added -S option to directly specify upstream servers and                Added -S option to directly specify upstream servers and
               added ability to direct queries for specific domains to                added ability to direct queries for specific domains to
              specfic servers. Suggested by Jens Vonderheide.              specific servers. Suggested by Jens Vonderheide.
   
               Upgraded random ID generation - patch from Rob Funk.                            Upgraded random ID generation - patch from Rob Funk.            
   
Line 386  release 1.11  Actually implement the -R flag promised  Line 386  release 1.11  Actually implement the -R flag promised 
               names in /etc/hosts -suggestion from Phil Harman.                names in /etc/hosts -suggestion from Phil Harman.
   
               Always return a zero time-to-live for names derived from                 Always return a zero time-to-live for names derived from 
              DHCP which stops anthing else caching these              DHCP which stops anything else caching these
               names. Previously the TTL was derived from the lease                names. Previously the TTL was derived from the lease
               time but that is incorrect since a lease can be given                time but that is incorrect since a lease can be given
               up early: dnsmasq would know this but anything with the                up early: dnsmasq would know this but anything with the
               name cached with long TTL would not be updated.                name cached with long TTL would not be updated.
   
              Extended HAVE_IPV6 config flag to allow compliation on              Extended HAVE_IPV6 config flag to allow compilation on
               old systems which don't have modern library routines                old systems which don't have modern library routines
               like inet_ntop(). Thanks to Phil Harman for the patch.                like inet_ntop(). Thanks to Phil Harman for the patch.
   
Line 471  release 1.14  Fixed man page description of -b option  Line 471  release 1.14  Fixed man page description of -b option 
               /etc/resolv.conf.                /etc/resolv.conf.
               (Thanks to Klaas Teschauer)                (Thanks to Klaas Teschauer)
                               
              Check that recieved queries have only rfc1035-legal characters              Check that received queries have only rfc1035-legal characters
               in them. This check is mainly to avoid bad strings being                in them. This check is mainly to avoid bad strings being
               sent to syslog.                sent to syslog.
   
Line 549  release 1.16  Allow "/" characters in domain names - t Line 549  release 1.16  Allow "/" characters in domain names - t
   
 release 1.17  Fixed crash with DHCP hostnames > 40 characters.  release 1.17  Fixed crash with DHCP hostnames > 40 characters.
   
              Fixed name-comparision routines to not depend on Locale,              Fixed name-comparison routines to not depend on Locale,
               in theory this versions since 1.15 could lock up or give                in theory this versions since 1.15 could lock up or give
               wrong results when run with locale != 'C'.                wrong results when run with locale != 'C'.
   
Line 574  release 1.18  Added round-robin DNS for names which ha Line 574  release 1.18  Added round-robin DNS for names which ha
               forwarded because -D is in effect, return NXDOMAIN not                forwarded because -D is in effect, return NXDOMAIN not
               an empty reply.                an empty reply.
   
              Add code to return the software version in repsonse to the              Add code to return the software version in response to the
               correct magic query in the same way as BIND. Use                  correct magic query in the same way as BIND. Use  
               "dig version.bind chaos txt" to make the query.                "dig version.bind chaos txt" to make the query.
   
Line 635  release 2.0 Line 635  release 2.0
              dynamic allocation.               dynamic allocation.
   
              Allow dhcp-host options for the same host with different               Allow dhcp-host options for the same host with different
             IP adresses where the correct one will be selected for             IP addresses where the correct one will be selected for
              the network the host appears on.               the network the host appears on.
   
              Fix parsing of --dhcp-option to allow more than one               Fix parsing of --dhcp-option to allow more than one
Line 674  release 2.1   Line 674  release 2.1  
                             
              Fix unaligned access warnings on BSD/Alpha.               Fix unaligned access warnings on BSD/Alpha.
   
             Allow empty DHCP options, like so: dhpc-option=44             Allow empty DHCP options, like so: dhcp-option=44
     
              Allow single-byte DHCP options like so: dhcp-option=20,1               Allow single-byte DHCP options like so: dhcp-option=20,1
   
Line 745  release 2.3 Line 745  release 2.3
              around a bug in the DHCP client in HP Jetdirect printers.               around a bug in the DHCP client in HP Jetdirect printers.
              Thanks to Marko Stolle for finding this problem.               Thanks to Marko Stolle for finding this problem.
   
             Return DHCP T1 and T2 times, with "fuzz" to desychronise lease             Return DHCP T1 and T2 times, with "fuzz" to desynchronise lease
              renewals, as specified in the RFC.               renewals, as specified in the RFC.
                             
              Ensure that the END option is always present in DHCP               Ensure that the END option is always present in DHCP
Line 838  release 2.4 Line 838  release 2.4
              by Chad Skeeters.               by Chad Skeeters.
   
              Fixed bug in /etc/ethers parsing code triggered by tab               Fixed bug in /etc/ethers parsing code triggered by tab
             characters. Qudos to Dag Wieers for hepling to nail that             characters. Kudos to Dag Wieers for helping to nail that
              one.               one.
                             
              Added "bind-interfaces" option correctly.                      Added "bind-interfaces" option correctly.       
Line 975  release 2.8 Line 975  release 2.8
              configuration. Specifically: (1) options are matched on               configuration. Specifically: (1) options are matched on
              the netids from dhcp-range, dhcp-host, vendor class and               the netids from dhcp-range, dhcp-host, vendor class and
              user class(es). Multiple net-ids are allowed and options               user class(es). Multiple net-ids are allowed and options
             are searched on them all. (2) matches agains vendor class             are searched on them all. (2) matches against vendor class
              and user class are now on a substring, if the given               and user class are now on a substring, if the given
              string is a substring of the vendor/user class, then a               string is a substring of the vendor/user class, then a
              match occurs. Thanks again to Richard Musil for prompting               match occurs. Thanks again to Richard Musil for prompting
Line 997  release 2.8 Line 997  release 2.8
   
              Add checks against DHCP clients which return zero-length               Add checks against DHCP clients which return zero-length
              hostnames. This avoids the potential lease-loss problems               hostnames. This avoids the potential lease-loss problems
             reffered to above. Also, if a client sends a hostname when             referred to above. Also, if a client sends a hostname when
              it creates a lease but subsequently sends no or a               it creates a lease but subsequently sends no or a
              zero-length hostname whilst renewing, continue to use the               zero-length hostname whilst renewing, continue to use the
              existing hostname, don't wipe it out.                existing hostname, don't wipe it out. 
Line 1010  release 2.9 Line 1010  release 2.9
              but to the address of another interface were ignored               but to the address of another interface were ignored
              unless the loopback interface was explicitly configured.               unless the loopback interface was explicitly configured.
              2) on OpenBSD failure to configure one interface now               2) on OpenBSD failure to configure one interface now
             causes a fatal error on startup rather than an huge             causes a fatal error on startup rather than a huge
              stream of log messages. Thanks to Erik Jan Tromp for                stream of log messages. Thanks to Erik Jan Tromp for 
              finding that bug.               finding that bug.
   
Line 1019  release 2.9 Line 1019  release 2.9
              broken. The new algorithm is to pick as before for the               broken. The new algorithm is to pick as before for the
              first try, but if a query is retried, to send to all               first try, but if a query is retried, to send to all
              available servers in parallel. The first one to reply               available servers in parallel. The first one to reply
             then becomes prefered for the next query. This should              then becomes preferred for the next query. This should 
              improve reliability without generating significant extra               improve reliability without generating significant extra
              upstream load.               upstream load.
   
Line 1027  release 2.9 Line 1027  release 2.9
              unqualified domains introduced in version 2.8                unqualified domains introduced in version 2.8 
                               
              Allow fallback to "bind-interfaces" at runtime: Some               Allow fallback to "bind-interfaces" at runtime: Some
             verions of *BSD seem to have enough stuff in the header             versions of *BSD seem to have enough stuff in the header
              files to build but no kernel support. Also now log if               files to build but no kernel support. Also now log if
              "bind-interfaces" is forced on.               "bind-interfaces" is forced on.
   
Line 1049  release 2.9 Line 1049  release 2.9
              first name found is now returned for reverse lookups,               first name found is now returned for reverse lookups,
              rather than all of them.               rather than all of them.
   
             Add back fatal errors when nonexistant              Add back fatal errors when nonexistent 
              interfaces or interface addresses are given but only in               interfaces or interface addresses are given but only in
              "bind-interfaces" mode. Principle of least surprise applies.               "bind-interfaces" mode. Principle of least surprise applies.
                             
Line 1193  version 2.14 Line 1193  version 2.14
   
 version 2.15  version 2.15
             Fixed NXDOMAIN/NODATA confusion for locally known              Fixed NXDOMAIN/NODATA confusion for locally known
            names. We now return a NODATA reponse for names which are            names. We now return a NODATA response for names which are
             locally known. Now a query for (eg AAAA or MX) for a name              locally known. Now a query for (eg AAAA or MX) for a name
             with an IPv4 address in /etc/hosts which fails upstream              with an IPv4 address in /etc/hosts which fails upstream
             will generate a NODATA response. Note that the query               will generate a NODATA response. Note that the query 
Line 1229  version 2.16 Line 1229  version 2.16
   
             Set NONBLOCK on all listening sockets to workaround non-POSIX              Set NONBLOCK on all listening sockets to workaround non-POSIX
             compliance in Linux 2.4 and 2.6. This fixes rare hangs which              compliance in Linux 2.4 and 2.6. This fixes rare hangs which
            occured when corrupted packets were received. Thanks to            occurred when corrupted packets were received. Thanks to
             Joris van Rantwijk for chasing that down.              Joris van Rantwijk for chasing that down.
     
             Updated config.h for NetBSD. Thanks to Martin Lambers.              Updated config.h for NetBSD. Thanks to Martin Lambers.
Line 1297  version 2.18 Line 1297  version 2.18
             interfaces with more than one IPv6 address. Thanks to              interfaces with more than one IPv6 address. Thanks to
             Martin Pels for help with that.              Martin Pels for help with that.
   
            Fix problems which occured when more than one dhcp-range            Fix problems which occurred when more than one dhcp-range
             was specified in the same subnet: sometimes parameters              was specified in the same subnet: sometimes parameters
             (lease time, network-id tag) from the wrong one would be              (lease time, network-id tag) from the wrong one would be
             used. Thanks to Rory Campbell-Lange for the bug report.              used. Thanks to Rory Campbell-Lange for the bug report.
Line 1314  version 2.19  Line 1314  version 2.19 
             Thanks to Richard Atterer for the bug report.              Thanks to Richard Atterer for the bug report.
   
             Check for under-length option fields in DHCP packets, a              Check for under-length option fields in DHCP packets, a
            zero length client-id, in particluar, could seriously            zero length client-id, in particular, could seriously
             confuse dnsmasq 'till now. Thanks to Will Murname for help              confuse dnsmasq 'till now. Thanks to Will Murname for help
             with that.              with that.
   
Line 1389  version 2.21 Line 1389  version 2.21
             recursive queries.              recursive queries.
   
             Fix DHCP address allocation problem when netid tags are in              Fix DHCP address allocation problem when netid tags are in
            use. Thanks to Will Murnane for the bug report and            use. Thanks to Will Murname for the bug report and
             subsequent testing.              subsequent testing.
   
             Add an additional data section to the reply for MX and SRV              Add an additional data section to the reply for MX and SRV
Line 1505  version 2.23 Line 1505  version 2.23
             from dnsmasq --version. Thanks to Dirk Schenkewitz for               from dnsmasq --version. Thanks to Dirk Schenkewitz for 
             the suggestion.               the suggestion. 
   
            Fix pathalogical behaviour when a broken client keeps sending            Fix pathological behaviour when a broken client keeps sending
             DHCPDISCOVER messages repeatedly and fast. Because dealing with              DHCPDISCOVER messages repeatedly and fast. Because dealing with
             each of these takes a few seconds, (because of the ping) then a               each of these takes a few seconds, (because of the ping) then a 
             queue of DHCP packets could build up. Now, the results of a ping               queue of DHCP packets could build up. Now, the results of a ping 
Line 1593  version 2.24 Line 1593  version 2.24
             than one dhcp-range is available. Thanks to Sorin Panca              than one dhcp-range is available. Thanks to Sorin Panca
             for help chasing this down.              for help chasing this down.
   
            Added more explict error mesages to the hosts file and            Added more explicit error messages to the hosts file and
             ethers file reading code. Markus Kaiserswerth suffered to              ethers file reading code. Markus Kaiserswerth suffered to
             make this happen.              make this happen.
   
Line 1617  version 2.25 Line 1617  version 2.25
   
             Fixed Suse spec file - thanks to Steven Springl.              Fixed Suse spec file - thanks to Steven Springl.
   
            Fixed DHCP bug when two distict subnets are on the same            Fixed DHCP bug when two distinct subnets are on the same
             physical interface. Thanks to Pawel Zawora for finding              physical interface. Thanks to Pawel Zawora for finding
             this and suggesting the fix.              this and suggesting the fix.
   
Line 1740  version 2.28 Line 1740  version 2.28
             Fixed regression in netlink code under 2.2.x kernels which               Fixed regression in netlink code under 2.2.x kernels which 
             occurred in 2.27. Erik Jan Tromp is the vintage kernel fan               occurred in 2.27. Erik Jan Tromp is the vintage kernel fan 
             who found this. P.S. It looks like this "netlink bind:              who found this. P.S. It looks like this "netlink bind:
            permission denied" problem occured in kernels at least as            permission denied" problem occurred in kernels at least as
             late a 2.4.18. Good information from Alain Richoux.              late a 2.4.18. Good information from Alain Richoux.
   
             Added a warning when it's impossible to give a host its              Added a warning when it's impossible to give a host its
Line 1761  version 2.28 Line 1761  version 2.28
             Eric House and Eric Spakman for help in chasing this down.              Eric House and Eric Spakman for help in chasing this down.
   
             Tolerate configuration screwups which lead to the DHCP              Tolerate configuration screwups which lead to the DHCP
            server attemping to allocate its own address to a            server attempting to allocate its own address to a
             client; eg setting the whole subnet range as a DHCP              client; eg setting the whole subnet range as a DHCP
             range. Addresses in use by the server are now excluded              range. Addresses in use by the server are now excluded
             from use by clients.              from use by clients.
Line 2067  version 2.36 Line 2067  version 2.36
             kernel. Thanks to Philip Wall for the bug report.              kernel. Thanks to Philip Wall for the bug report.
   
             Added --dhcp-bridge option, but only to the FreeBSD              Added --dhcp-bridge option, but only to the FreeBSD
            build. This fixes an oddity with a a particular bridged            build. This fixes an oddity with a particular bridged
             network configuration on FreeBSD. Thanks to Luigi Rizzo              network configuration on FreeBSD. Thanks to Luigi Rizzo
             for the patch.              for the patch.
   
Line 2273  version 2.40 Line 2273  version 2.40
             this.              this.
   
             Use client-id as hash-seed for DHCP address allocation              Use client-id as hash-seed for DHCP address allocation
            with Firewire and Infiniband, as these don't supply an MAC            with Firewire and InfiniBand, as these don't supply a MAC
             address.               address. 
   
             Tweaked TFTP file-open code to make it behave sensibly              Tweaked TFTP file-open code to make it behave sensibly
Line 2307  version 2.40 Line 2307  version 2.40
             Continue to use unqualified hostnames provided by DHCP              Continue to use unqualified hostnames provided by DHCP
             clients, even if the domain part is illegal. (The domain              clients, even if the domain part is illegal. (The domain
             is  ignored, and an error logged.) Previously in this              is  ignored, and an error logged.) Previously in this
            situation, the whole name whould have been            situation, the whole name would have been
             rejected. Thanks to Jima for the patch.              rejected. Thanks to Jima for the patch.
                           
             Handle EINTR returns from wait() correctly and reap              Handle EINTR returns from wait() correctly and reap
Line 2319  version 2.40 Line 2319  version 2.40
             leases file and passed to the lease-change              leases file and passed to the lease-change
             script. Suggestion from Ben Voigt.              script. Suggestion from Ben Voigt.
   
            Re-run the lease chamge script with an "old" event for            Re-run the lease change script with an "old" event for
             each lease when dnsmasq receives a SIGHUP.              each lease when dnsmasq receives a SIGHUP.
   
             Added more useful exit codes, including passing on a              Added more useful exit codes, including passing on a
Line 2417  version 2.41 Line 2417  version 2.41
             Changed behavior of DHCP server to always return total length of              Changed behavior of DHCP server to always return total length of
             a new lease in DHCPOFFER, even if an existing lease              a new lease in DHCPOFFER, even if an existing lease
             exists. (It used to return the time remaining on the lease              exists. (It used to return the time remaining on the lease
            whne one existed.) This fixes problems with the Sony Ericsson            when one existed.) This fixes problems with the Sony Ericsson
             K610i phone. Thanks to Hakon Stordahl for finding and              K610i phone. Thanks to Hakon Stordahl for finding and
             fixing this.              fixing this.
   
Line 2433  version 2.41 Line 2433  version 2.41
   
             Add --dhcp-match flag, to check for arbitrary options in              Add --dhcp-match flag, to check for arbitrary options in
             DHCP messages from clients. This enables use of dnsmasq              DHCP messages from clients. This enables use of dnsmasq
            with gPXE. Thanks to Rance Hall for the suggestion.            with iPXE. Thanks to Rance Hall for the suggestion.
   
             Added --dhcp-broadcast, to force broadcast replies to DHCP              Added --dhcp-broadcast, to force broadcast replies to DHCP
             clients which need them but are too dumb or too old to              clients which need them but are too dumb or too old to
Line 2476  version 2.42 Line 2476  version 2.42
   
             Fix OS detection logic to cope with GNU/FreeBSD.              Fix OS detection logic to cope with GNU/FreeBSD.
   
            Fix unitialised variable in DBus code - thanks to Roy            Fix uninitialised variable in DBus code - thanks to Roy
             Marples.              Marples.
   
             Fix network enumeration code to work on later NetBSD -              Fix network enumeration code to work on later NetBSD -

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>