Commit graph

49 commits

Author SHA1 Message Date
seb
93d99aad85 Bump PKGREVISION to 1.
Change dependency on the soon to be removed net/p5-INET6 to
the identical net/p5-IO-Socket-INET6
2009-03-07 15:34:40 +00:00
wiz
8fa9f358d8 Update to 0.65:
**** 0.65 January 26, 2009

Fix rt.cpan.org #41076

    When the AAAA object was constructed with new_from_hash with an
    address containing the "::" shorthand notation normalization was
    not done properly.

Fix rt.cpan.org #42375

    Typo in Win32.pm Registry root.



**** 0.64 December 30, 2008

Feature rt.cpan.org #36656

    Added support for the APL record (RFC 3123)
    The module consists of a list of Address Prefix Item objects
    as defined in the Net::DNS::RR::APL::ApItem class.
    NOTE: Class and its interface may be subject to change.


Fix rt.cpan.org #11931 Wrong nameserver list handling in
                       Net::DNS::Resolver::Win32


    The init method has been rewritten to be based on WIN32::IPhelper for
    the selection of the domain and the IP addresses. This is believed to
    be more portable than trying to fetch the data from the registry.
    We still trying to get the searchlist from the registry.

    WARNING: If you use Perl under WIN32 (eg ActivePerl or Strawberry Perl)
    then your module dependency graph has changed drastically

Fix IPv6 modules
    When IO::Socket::INET6 was available but Socket6 was not the code would
    recurse to infinity.

Fix rt.cpan.org #21757 and Feature: Connectivity during test
    Addition of --no-IPv6-tests and --IPv6-tests option in Makefile.PL.
    Note: This causes two questions to be asked when building the
    Makefile instead of one.

    Besides the test suites are constructed so that all the connectivity testing
    happen in 001-connectivity.t and inavailability of connectivity over a certain
    transport is signalled over files t/online.disabled and t/IPv6.disabled respectivly.
    Both files are removed by t/99-cleanup

Fix rt.cpan.org #34511
    Priming query logic contained unneeded recursion.
    Now also fals back to hardcoded hints if there are no nameservers whatsoever.

Fix rt.cpan.org #38390 and 37089
    Added CD and AD bit control to the resolver.

    The CD flag defaults to being unset and the AD flags is set by default
    whenever DNSSEC is available.
    Both flags default to unset in absence of DNSSEC.


Fix rt.cpan.org #37282
   Improved error reporting during client disconnect from the nameserver

NOTE rt.cpan.org # 40249

   Release 0.62 introduced a feature to parse data inside a packet only
   when needed. This can the following to happen:

   Eception: corrupt or incomplete data at
                     /usr/lib/perl5/Net/DNS/RR.pm line 510.
   caught at -e line 1

   This may happen when you have undefined your packet data before all the
   sections have been fully parsed. Such as in:

   $packet = Net::DNS::Packet->new(\$data);
   undef($data);

   The workaround is to force parcing by calling the methods that
   parse the data. e.g.

   $packet = Net::DNS::Packet->new(\$data);
   $packet->answer; $packet->additional; $packet->authority;
   undef ($data)


Fix rt.cpan.org # 41076 and # 41071

  Net::DNS::RR->new_from_hash function would not normalize the content
  of the data so that a method getting a string representation would
  get inconsistent results depending on whether a RR was created from
  a string of from a hash.

Fix rt.cpan.org # 41296

  Compression buggy for large packets. Fix by Kim Minh.


Fix rt.cpan.org # 35752

  Perl 5.10.0 gave a number of issues on several platforms, prefering
  XSLoader over Dynaloader seemed to fix those.


Bug rt.cpan.org #34510
  Buggy setting of "Recursion too deep, aborted" corrected.

Feature (rt.cpan.org #39284)

  The ReplyHandler now also receives a variable with an annonymous has with the connection details. Variables
  supplied to the Reply handler are:  $qname, $qclass, $qtype, $peerhost, $query, $conn
  The hash referenced by $conn contains the following buckets: sockhost, sockport,  peerhost, and peerport.



Feature t/08-online.t and t/10-recurse.t

  In particular environments a query for a.t. will resolve and or
  middleboxes will replace DNS packet content for queries to the root.
  A bunch of test is skipped when this (broken) environment is
  detected.



Feature/Bug rt.cpan.org #22019

  The initial fix for rt 22019 was to strip a trailing dot from all
  attributes that where povided as argument for the
  Net::DNS::RR::new_from_hash function.  We have introduced
  Net::DNS::stripdot, a function that will strip the dots of domain
  names, taking into account possible escapes (e.g. labels like
  foo\\\..).  As a side effect the new_from_string method will now
  convert possible spaces that are not trapped by some of the
  new_from_string functions and convert them to \032 escapes.

  For information: The internal storage of domain names is using
  presentation format without trailing dots.



Bug
  @EXPORT and @EXPORT_OK moved to a BEGIN block so that Net::DNS::SEC
  can make use of exported functions


Feature/Bug

  The Notify handler introduced in 0.63 did not set the OPCODE on the
  reply appropriately. This has been solved generically by allowing the
  "Headermask" that is returned as 4th element by the reply or notify
  handler in the nameserver also allows for the opcode to be set.
  e.g. as in return ("NXDOMAIN",[],[],[],{ opcode => "NS_NOTIFY_OP" }
  );
2009-02-22 16:38:46 +00:00
he
b021813da0 Bump the PKGREVISION for all packages which depend directly on perl,
to trigger/signal a rebuild for the transition 5.8.8 -> 5.10.0.

The list of packages is computed by finding all packages which end
up having either of PERL5_USE_PACKLIST, BUILDLINK_API_DEPENDS.perl,
or PERL5_PACKLIST defined in their make setup (tested via
"make show-vars VARNAMES=...").
2008-10-19 19:17:40 +00:00
tron
3fbd4350e3 Update "p5-Net-DNS" package to version 0.63.
Changes since version 0.62:
===========================
*** 0.63, 8 Feb 2008

This version contains a Security Fix.

Feature NotifyHandler in Nameserver

  The NotifyHandler is a new attribute to the nameserver used in the
  same way as the ReplyHandler except that it is executed when the
  opcode is NS_NOTIFY (RFC1996). It takes the same arguments as the
  reply handler (i.e. $qname, $qclass, $qtype, $peerhost, and $query).
  Corrections made in the documentation.

Fix rt.cpan.org #32937: 5.11 introduces new warning on uc(undef)

  The patch supplied fixes for methods where undefined arguments were
  likely. For methods where undefined arguments don't make the warning
  will be printed.


Fix rt.cpan.org #32147: Default LocalAddr broken in Net::DNS::Nameserver 0.62

  Listen on the default address if LocalAddr not defined.


Fix rt.cpan.org #30316  Security issue with Net::DNS Resolver.

  Net/DNS/RR/A.pm in Net::DNS 0.60 build 654 allows remote attackers
  to cause a denial of service (program "croak") via a crafted DNS
  response (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2007-6341). Packet
  parsing routines are now enclosed in eval blocks to trap exception
  and avoid premature termination of user program.

Bug: mbox-dname and txt-dname were not allowed to be empty in the RP RR.
   Fix by Peter Koch
2008-03-15 12:10:21 +00:00
heinz
c3df777e65 Updated to version 0.62.
Pkgsrc changes:
  - A C compiler is necessary.

Changes since version 0.61:
===========================
*** 0.62, 28 December 2007
Features: Move of some functionality out of the Packet to the Question
   and RR classes; parsing of elements in the packet is now performed
   by calling the appropriate subclasses.

   New methods were introduced:
   * Net::DNS::Packet->parse()
   * Net::DNS::RR->parse()
   * Net::DNS::Question->parse()

   The Packet class now defers parsing of authority/additional until
   their content is really needed. This should cause a bit of
   performance improvement.

   Dick Franks is acknowledged for this Good Work (TM).

Feature: the Net::DNS::Packet's answersize() method will from now on
    ignore its arguments and just return the size of the packet.

Feature: The Net::DNS::RR->new() method used to call
    Net::DNS::RR->new_from_data() whenever called with the appropriate
    combination of arguments. That (undocumented) behavior has been deprecated.
    Use Net::DNS::RR->new_from_data() directly if you depended on that.

Feature: Net::DNS::Packets unique_push now ignores the TTL in
    comparison of uniqueness, this is closer to the intend of
    RFC2181, but not yet fully compliant.

Fix rt.cpan.org #29816
    Acquiring the IP address for the Resolver under Cygwin is made
    more resilient.

Fix rt.cpan.org #31425
    Empty question section in Base.pm search method detected

Fix rt.cpan.org #31042
    Makefile corrected to add a library target.

Fix rt.cpan.org #29818
    10-recurse.t used to fail in very specific environment (where a query for
    qname="." and qtype="NS" would return with an empty additional section).
    Fixed by adding the hints explicitly; this also forces the tests to take
    place under the root served by a-m.root-servers.net

Fix rt.cpan.org #29877
    Made 00-version.t recognize a "GIT" environment.

Fix rt.cpan.org #29878
   SPF.pm did not evaluate as true. Thanks Bjorn Hansen.

Fix rt.cpan.org #21398
   answersize() and answerfrom() set for persistent sockets

Fix rt.cpan.org #29883
   Fix various tests only available through SVN, so they are
   more robust (Acknowledgements Bjoern Hansen)

Fix rt.cpan.org #24343
   Resolver's nameserver() method would do silly things with undefined
   arguments.

Fix rt.cpan.org #29531
   Nameserver.pm, Packet.pm and Question.pm modified to avoid erroneous PTR
   lookup in response to mischievous query packet containing an IP address.

Fix rt.cpan.org #27970 better netdns.o
    Marek Rouchal provided two minor improvements for linking the C
    code sniplets

Fix rt.cpan 28345
    A fix in Test::Simple revealed an off by 1 error in the testplan
    for 05-rr-rrsort.t. The fix is to remove a test, creating a dependency
    on Test::Simple 0.71 seemed overkill.
2008-01-08 19:29:45 +00:00
jlam
56ba4d2690 Remove empty PLISTs from pkgsrc since revision 1.33 of plist/plist.mk
can handle packages having no PLIST files.
2007-10-25 16:54:26 +00:00
heinz
7379109c0b Updated to version 0.61.
Pkgsrc changes:
  - none

Changes since version 0.60:
===========================
*** 0.61, 1 August 2007

Fix rt.cpan.org #28106, 28198, and 28590
    Modification of $_ in various places.

Fix
    t/11-inet6 assumed lowercase domain names.
2007-08-24 19:28:16 +00:00
taca
660a48c1a9 Update p5-Net-DNS package to 0.60.
Changes are more than 100 lines, but it fixes these security problem.

	http://nvd.nist.gov/nvd.cfm?cvename=CVE-2007-3377
	http://nvd.nist.gov/nvd.cfm?cvename=CVE-2007-3409
2007-07-03 14:53:20 +00:00
heinz
3b9fd51eef Updated to version 0.59.
Pkgsrc changes:
  - Removed patch-ac for t/11-inet6.t, this got integrated by the software
    maintainer.

Changes since version 0.58:
===========================
*** 0.59 September 18, 2006
Fix rt.cpan.org 20836, 20857, 20994, and 21402

    These tickets all revolved around proper reverse mapping of IPv6
    addresses.
    Note that directly calling Question->new() withouth arguments will
    cause the qclass,qtype to be IN, A instead of ANY, ANY.
    Net::DNS::Resolver's search() method would always gracefully
    interpret a qname in the form of an IPv4 address. It would go out
    and do a PTR query in the reverse address tree. This behavior has
    also been applied to IPv6 addresses in their many shapes and
    forms.
    This change did two things, 1) root zone not implicitly added to
    search list when looking up short name, 2) default domain appended
    to short name if DEFNAMES and not DNSRCH.

Fix rt.cpan.org 18113
   Minor error due to unapplied part of patch fixed.

Feature: Experimental NSEC3 hooks.
   Added hook for future support of (experimental) NSEC3 suppport
   (NSEC3 having an experimental type code).
2007-03-24 18:43:40 +00:00
joerg
aa48c98240 DESTDIR support. 2006-11-05 17:31:09 +00:00
heinz
3b22836adc Updated to version 0.58.
Pkgsrc changes:
  - Added patch-ac to change the number of skipped online tests (still
    incorrect).

Changes since version 0.57:
===========================
Feature: hooks for DLV support in Net::DNS::SEC
   added hooks for DLV support which is/will be available in
   Net::DNS::SEC as of subversion version 592 (Tests are done agains
   the subversion number, not against the perl release version)
   Net::DNS::SEC version 0.15 will have DLV support.

Partly Fixed rt.cpan.org 18940
   djhale noticed a number of error conditions under which de
   udp_connection in Nameserver dies. We now print a warning instead
   of dying.

Fix rt.cpan.org 18958
   Fixed typebyname croak for SIGZERO. Acknowledgements to djhale.

Optimize rt.cpan.org 11931
   Hanno Stock optimized the method to get the list of available
   interfaces in Win32.  I have only done very rudimentary tests on
   my Windows XP system.

Fix dependency on "CC" rt.cpan.org 19352
   The Makefile.PL depended on availabliltity of "cc" and would bail
   out on systems where gcc is exclusivly available. Thanks to Rob
   Windsor for noticing and patching.

Fix compressed dnames in NAPTR/SRV
    Clayton O'Neill noted that the the domain names in in the NAPTR
    and SRV RRs rdata were subject to name compression which is not
    conform the specs. Also see RFC 2782 and 2915.

Fix rt.cpan.org 18897
   Zero-length rdata in TXT fixed (Acknowledgements to Roy Arends)

Fix rt.cpan.org 18785
   SPF would not work unless the TXT RR was not loaded first. No
   wonder, SPF fully inherits TXT and loading of TXT.pm is therefore a
   prerequisit.

Fix rt.cpan.org 18713
    Net::DNS::Resolver now deals gracefully with persistent sockets
    that got disconnected. It will first try to connect again to the
    socket and if that fails it will try to connect to the next
    available nameserver. tcp_timeout() is the parameter that
    determines how long to wait during a reconnect.

Fix rt.cpan.org 18268
     Added reference to RFC in croak message for label length > 63 in
     dn_comp().

Fix rt.cpan.org  18113
    The inet6 tests contained another bug when online-tests were disabled.
    Klaus Heinz discovered and provided a patch.
2006-09-03 16:55:15 +00:00
heinz
5b28e71cee Updated to version 0.57.
Pkgsrc changes:
  none

Relevant changes since version 0.55:
=====================================
Fix rt.cpan.org 17783
    The inet6 tests do not skip enough tests when ipv6 is not available.
    I did not catch this in my setup since IPv6 is available on all my
    machines.

Feature Implemented SPF (typecode 99).

Feature added rrsort() function.
   See Net::DNS and Net::DNS::RR documentation for details.

Fix rt.cpan.org 14653 and 14049
   TCP fallback after V6 socket failure
2006-03-12 00:10:16 +00:00
heinz
d01d93f3dd Updated to version 0.55.
Pkgsrc changes:
  - Removed hacks.mk. Net::DNS should work on Mac OS 10.4 withouth this
    workaround.
  - The package has two options now: "inet6" and "online-tests".
  - p5-Net-DNS requires an additional package, p5-Net-IP.

Relevant changes since version 0.49:
====================================
- many bug fixes (see Changes and rt.cpan.org)

Feature Net::DNS::Nameserver loop_once()
   Uncommented the documentation of the loop_once() function and introduced
   get_open_tcp() that reports if there are any open TCP sockets (useful
   when using loop_once().

   loop_once() itself was introduced in version 0.53_02

Feature async nameserver behaviour.

Fix IPv6 on AIX
    Binding to the local interface did not work when local address was
    specified as "0" instead of "::". The problem was identified,
    reported and fixed by Achim Adam.

Feature
    Net::DNS::RR::OPT

    added the the size(), do(),set_do() and clear_do() methods.

Feature:
      Added "ignqrid" as an attribute to the Resolver.

      use as:
      ok (my $res=Net::DNS::Resolver->new(nameservers => ['127.0.0.1'],
				    port => 5354,
				    recurse => 0,
				    igntc => 1,
				    ignqrid => 1,
				    ),

      When the attribute is set to a non-zero value replies with the
      qr bit clear and replies with non-matching query ids are
      happily accepted. This opens the possibility to accept spoofed
      answers. YOU CAN BURN YOURSELF WITH THIS FEATURE.

      It is set to 0 per default and remains, except for this changes file
      an undocumented feature.

Fix: Makefile.PL: Minor tweak to recognize Mac OS X 10.4 not so relevant
    since netdnslib is distributed with the code.

Feature: Calling the Net::DNS::Resolver::dnssec method with a non-zero
    argument will set the udppacketsize to 2048. The method will
    also carp a warning if you pass a non-zero argument when
    Net::DNS::SEC is not installed.

Feature: IPv6 transport support
     IPv6 transport has been added to the resolver and to the
     nameserver code.

     To use IPv6 please make sure that you have IO::Socket::INET6 version
     2.01 or later installed.

     If IPv6 transport is available Net::DNS::Resolver::Recurse will make
     use of it (picking randomly between IPv4 and IPv6 transport) use
     the force_v4() method to only force IPv4.

Feature: Binary characters in labels
     RFC 1035 3.1:

       Domain names in messages are expressed in terms of a sequence of
       labels.  Each label is represented as a one octet length field
       followed by that number of octets.  Since every domain name ends
       with the null label of the root, a domain name is terminated by a
       length byte of zero.  The high order two bits of every length octet
       must be zero, and the remaining six bits of the length field limit
       the label to 63 octets or less.

     Unfortunatelly dname attributes are stored strings throughout
     Net::DNS.  (With hindsight dnames should have had their own class
     in which one could have preserved the wire format.).

     To be able to represent all octets that are allowed in domain
     names I took the approach to use the "presentation format" for
     the attributes. This presentation format is defined in RFC 1035
     5.1.

     I added code to parse presentation format domain names that has
     escpaped data such as \ddd and \X (where X is not a number) to
     wireformat and vice verse. In the conversion from wire format to
     presentation format the characters that have special meaning in a
     zone file are escaped (so that they can be cut-n-pasted without
     pain).

     These are " (0x22), $ (0x24), (0x28), ) (0x29), . (0x2e) , ;
     (0x3b), @ (ox40) and \ (0x5c). The number between brackets
     representing the ascii code in hex.

     Note that wherever a name occurs as a string in Net::DNS it is
     now in presentation format.

     For those that dealth with 'hostnames' (subset of all possible
     domain names) this will be a completely transparent change.

     Details:

     I added netdnslib wich contains Net::DNS's own dn_expand. Its
     implemented in C and the source is a hodgepodge of Berkeley based
     code and sniplets from ISC's bind9 distribution. The behavior, in
     terms of which chars are escaped, is similare to bind9.

     There are some functions added to DNS.pm that do conversion from
     presentation and wire format and back. They should only be used
     internally (although they live in EXPORT_OK.)

     For esotheric test cases see t/11-escapedchars.t.
2006-02-09 21:35:46 +00:00
schmonz
8e7a8c797a Fix build on OS X with BIND9 system resolver by defining BIND_8_COMPAT.
(This needs to be fixed more generally across pkgsrc post-freeze.)

Reviewed by wiz.
2005-09-17 20:58:59 +00:00
jlam
7fbb8d9527 Bump the PKGREVISIONs of all (638) packages that hardcode the locations
of Perl files to deal with the perl-5.8.7 update that moved all
pkgsrc-installed Perl files into the "vendor" directories.
2005-08-06 06:19:03 +00:00
jlam
7a6521287b Turn PERL5_PACKLIST into a relative path instead of an absolute path.
These paths are now relative to PERL5_PACKLIST_DIR, which currently
defaults to ${PERL5_SITEARCH}.  There is no change to the binary
packages.
2005-07-13 18:01:18 +00:00
heinz
9550a96b8d Update to version 0.49.
--

Changes from 0.48
=================

Fix: Only remove leading zeros in the regular expressions for typesbyval
     and classbyval methods. (patch by Ronald v.d. Pol)

Fix: Properly return an empty array in the authority, additional and answer
     methods (patch by Ronald v.d. Pol)

Fix: rt.cpan.org #11930
     Incorrect searchlist duplication removal in Net::DNS::Resolver::Win32
     Patch courtesy Risto Kankkunen.

Problem: rt.cpan.org #11931

     Win32.pm used the DNSRegisteredAdapters registry key to determine which
     local forwarders to send queries to. This is arguably the wrong key as it
     is used to identify the server which to send dynamic updates to.

     A real fix for determining the set of nameservers to query has not been
     implemented. For details see
     https://rt.cpan.org/Ticket/Display.html?id=11931

Fix: Bug report by Bernhard Schmidt (concerning a bug on the IPv6 branch).

      The bug caused dname compression to fail and to create
      compression pointers causing loops.

Fix: rt.cpan.org  #8882
      No redundant lookups on SERVFAIL response
      and #6149
      Does not search multiple DNS servers

      Net::DNS::Resolver will now use the other nameservers in the
      list if the RCODE of the answer is not NO ERROR (0) or NAME
      ERROR (3). When send() exhausted the last nameserver from the it
      will return the answer that was received from the last
      nameserver that responded with an RCODE.

      The error string will be set to "RCODE: <rcode from last packet>"

Fix: rt.cpan.org #8803

      TXT records don't work with semicolons

      Since we are expecting presentation format at input a comment
      will need to be escaped ( \; ).

      It could be argued that this is a to strict interpretation of
      1035 section 5.1.

      While working on this I discovered there are more problems with
      TXT RRs. e.g.; '0100' (a character string content represented in
      hex) is a perfectly legal and should be represented as "\000" in
      presentation format. Net::DNS does pass character strings with
      "non-ASCII" chars from the wire to the char_str_lst array but
      the print functions do not properly escape them when printing.

      Some tests with TXT RRs added to 07-misc.t

      Properly dealing with zone file presentation format and binary
      data is still to be done.

Fix: rt.cpan.org Ticket #8483
	eval tests for DNS::RR::SIG fail when using a die handler
	(Thanks Sebastiaan Hoogeveen)

      Patch applied.

Fix: rt.cpan.org: Ticket #8608
	Net::DNS::Packet->data makes incorrect assumptions

      Implemented the "pop" method for the question.
      Since having a qcount that is not 1 is somewhat rare (it appears
      in TCP AXFR streams) the ability to pop the answer from a question
      has not been documented in the "pod"

      Also fixed the incorrect assumption.

      (Thanks Bruce Campbell.)

Fix: Ticket #11106
      Incorrect instructions in README

      Corrected in the README and in Makefile.PL

Olaf Kolkman took over maintenance responsibility from Chris
Reinardt. This involved importing the code into another subversion
repository. I made sure the numbers jumped, but I did not have access
to the "original" subversion repository so I lost some of the history.
2005-04-20 13:00:50 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
wiz
f3ab2d5e76 Update to 0.48:
Net::DNS is now stored in a subversion repository, replacing cvs.
As such the submodule version numbers have taken another big jump.
Luckily those numbers don't matter as long as they work.

Fixed a bug with Unknown RR types that broke zone signing [Olaf].

Added callback support to Net::DNS::Resolver::Recuse.  The
demo/trace_dns.pl script demonstrates this.

Added a note regarding answers with an empty answer section to the
Net::DNS::Resolver::search() and Net::DNS::Resolver::query()
documentation.

The copyright notice for Net::DNS::RR::SSHFP was incorrect.  That file
is Copyright (c) 2004 RIPE NCC, Olaf Kolkman.
2005-03-22 14:15:28 +00:00
agc
b12d62efb5 Add RMD160 digests. 2005-02-24 12:13:41 +00:00
heinz
c05787e4e6 take maintainership 2005-02-21 22:26:05 +00:00
hubertf
9a981bcfbe Sign over maintainership to tech-pkg@ 2005-02-21 20:26:08 +00:00
grant
908e765695 since perl is now built with threads on most platforms, the perl archlib
module directory has changed (eg. "darwin-2level" vs.
"darwin-thread-multi-2level").

binary packages of perl modules need to be distinguishable between
being built against threaded perl and unthreaded perl, so bump the
PKGREVISION of all perl module packages and introduce
BUILDLINK_RECOMMENDED for perl as perl>=5.8.5nb5 so the correct
dependencies are registered and the binary packages are distinct.

addresses PR pkg/28619 from H. Todd Fujinaka.
2004-12-20 11:30:55 +00:00
heinz
9e041465c3 Update to version 0.47.
Revision history for Net::DNS
=============================

*** 0.47 April 1, 2004

safe_push() is back in Net::DNS::Packet, due to the excellent debate
skills of Luis E Monoz.  However, the name safe_push() is deprecated,
use the new name unique_push() instead.

Fixed a bug in Net::DNS::Nameserver which caused the class to build
packets incorrectly in some cases. [Ask Bjorn Hansen]

Error message cleanups in Net::DNS::typesbyname()
and Net::DNS::typesbyval() [Ask Bjorn Hansen]

Net::DNS::RR::new_from_hash() now works with unknown RR types [Olaf].
2004-05-29 16:50:49 +00:00
heinz
2940704635 Update to version 0.46
Changes since 0.45
==================

*** 0.46 February 21, 2004

IPv6 reverse lookups can now be done with Net::DNS::Resolver::search(),
as well as with query().

Hostnames can now be used in the 'nameservers' arguement to
Net::DNS::Resolver->new()

Removed Net::DNS::Select from the package.  IO::Select appears to work
on windows just fine.

Fixed a bug that caused MXes with a preference of 0 to function
incorrectly, reported by Dick Franks.

Net::DNS had a few problems running under taint mode, especially under
cygwin.  These issues have been fixed.  More issues with taint mode may
lay undiscovered.

Applied Matthew Darwin's patch added support for IPv6 reverse lookups to
Net::DNS::Resolver::query.
2004-03-07 01:42:09 +00:00
jlam
57ec57613f PERL5_REQD is now a list of values, so append to its value instead of
setting it.
2004-02-10 02:22:49 +00:00
jlam
f75cc2df62 Set the required version of perl using PERL5_REQD instead of directly
setting BUILDLINK_DEPENDS.perl.
2004-01-25 16:56:27 +00:00
heinz
702c442684 Update to 0.45.
Patch to enable online tests no longer necessary.

Changes since 0.42:

Revision history for Net::DNS
=============================

*** 0.45 January 8, 2004

No changes from 0.44_02.

** 0.44_02 January 3, 2004

The XS detection code was broken.  We actually use the XS bits now.

Major cleanups/optimizations of the various RR subclasses.  This release
of Net::DNS is over twice as fast at parsing dns packets as 0.44.

** NOTICE **

$rr->rdatastr no longer returns '; no data' if the RR record has no
data.  This happens in $rr->string now.

Net::DNS::Packet::safe_push() no longer exists.  The method is now only
avalible from Net::DNS::Update objects.


** 0.44_01 January 3, 2004

Net::DNS::RR objects were not playing nice with Storable, this caused
the axfr demo script to fail.  Thanks to Joe Dial for the report.

** NOTICE **
This may cause RR objects that are already serialize to not deserialize
correctly.

Reply handlers in Net::DNS::Nameserver are now passed the query object.

Fixed a nasty bug in Nameserver.pm related to the qr bit.  As Olaf
explained:

  Replies are sent if the query has its "qr" bit set. The "qr" bit is an
  indication that the packet is sent as a response to a query. Since
  there are more implementations that suffer from this bug one can cause
  all kinds of nasty ping-pong loops by spoofing the initial packet or
  have an infinite query loop by spoofing a query from the localhost:53
  address.

Various Win32/Cygwin cleanups from Sidney Markowitz.


*** 0.44 December 12, 2003

	The Wrath of CPAN Release.

CPAN.pm doesn't understand the nature of revision numbers.  1.10 is
newer than 1.9; but CPAN.pm treats them as floats.  This is bad.
All the internal version numbers in Net::DNS have been bumped to
2.100 in order to fix this.

No actual code changes in this release.


*** 0.43 December 11, 2003

Added warning of deprecation of Net::DNS::Packet::safe_push.  This will
move into Net::DNS::Update, as Net::DNS::Update is now a proper subclass
of Net::DNS::Packet.

** 0.42_02 December 11, 2003

Fixed a long standing bug with zone transfers in the "many-answers" format.
CPAN #1903.

Added the '--online-tests' flag to Makefile.PL.  This activates the online
tests without asking the user interactively.  "--no-online-tests" turns
the tests off.

Cleaned up Makefile.PL a little.  The "--pm" flag is now deprecated, use
"--no-xs" instead.

Added support for unknown RR types (rfc3597). Note for developers: the
typesbyname, typesbyval, classesbyname and classesbyval hashes should
not be used directly, use the same named wrapper functions
instead. [Olaf Kolkman]

Added two hashes for administrative use; they store which types are
qtypes and metatypes (rfc2929). [Olaf Kolkman]

** 0.42_01 November 30, 2003

Major work to get Net::DNS functioning properly on Cygwin by Sidney
Markowitz.

Fixed a bug in Net::DNS::Nameserver's error handling.  CPAN #4195
2004-01-18 22:36:52 +00:00
jlam
848d6eb2a3 bl3ify 2004-01-05 22:16:24 +00:00
heinz
f240b1e325 Update to version 0.42.
Changes since 0.40:


*** 0.42 October 26, 2003

Fixed compilation problems on panther (Mac OS 10.3).

Fixed a bug in Net::DNS::Resolver::Recurse which allowed an endless
loop to arise in certain situations.  (cpan #3969, patch
by Rob Brown)

Applied Mike Mitchell's patch implementing a presistant UDP socket.
See the Net::DNS::Resolver documentation for details.

*** 0.41 October 3, 2003

Added some documentation about modifying the behavior of Net::DNS::Resolver.

** 0.40_01 September 26, 2003

Fixed some uninitialized value warnings when running under windows.

Fixed a bug in the test suite that caused 00-version.t to fail with
certain versions of ExtUtils::MakeMaker.   Thanks to David James, Jos
Boumans and others for reporting it.

Reply handlers in Net::DNS::Nameserver are now passed the peerhost.
(Assen Totin <assen@online.bg>)

Reply handlers in Net::DNS::Nameserver can now tweak the header bits
that the nameserver returns.  [Olaf]

The AD header bit is now documented, and twiddleable. [Olaf]

The change log has been trimmed, entries for versions older than 0.21
have been removed.

** NOTICE **
Net::DNS::Resolver::axfr_old() has been removed from the package.
An exception will be thrown if you attempt to use this method.  Use
axfr() or axfr_start() instead.
2003-12-10 22:38:41 +00:00
grant
e71f951d44 fix COMMENT 2003-11-26 05:59:50 +00:00
jlam
0ffcb6ac82 Revert back to buildlink2. 2003-09-13 12:00:16 +00:00
jlam
88237334a9 Updated net/p5-Net-DNS to 0.40. Changes from version 0.33 include:
Net-DNS-SEC updates, seems that IETF has been busy redefining DNSSEC.

When parsing resolver configuration files, IPv6 addresses are now skipped,
as Net::DNS does not yet have IPv6 support.

Broke Net::DNS::Resolver into seperate classes.  Many of the globals in
Net::DNS::Resolver no longer exist.  They were never documented
so you never used them.... right?

Options to Net::DNS::Resolver->new() are now supported, including
using your own configuration file.

Moved next_id() from Resolver.pm to Header.pm (which is where it is
used).

Tie::DNSHash removed from the package, see Tie::DNS from CPAN for a more
complete implementation of a DNS hash.

Applied David Carmean's patch for handling more than one string in a
TXT RR's RDATA section.

Applied patch from Dan Sully (daniel@electricrain.com) allowing multiple
questions to be part of a DNS packet.
2003-09-13 11:57:07 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
seb
5bba6f3ff6 With the inclusion of perl5/module.mk TEST_TARGET and PERL5_CONFIGURE
are unnecessary so remove them.
2003-03-26 11:01:01 +00:00
mjl
4e95ba2ace Update p5-Net-DNS to 0.33
Fixed the regular expression in RR.pm to comply with the RFCs,
	turns our we were _too_ paranoid.
   Various cleanups for perl 5.004.
   Applied SIG patch.
   Added Net::DNS::Resolver::Recurse module.
   Applied initialization bug in OPT.pm patch.
   Applied patch for udp timeouts.
   Fixed a typo in FAQ.pod that was making aropos and whatis
	grumpy.
   Applied patch for TKEY support.
   Added Net::DNS::Packet->safe_push() to allow for automatically
	checking for duplicate RRs being pushed into a packet.
   Added more tests.
2003-03-03 10:56:57 +00:00
dillo
5f4ad95078 convert to use test target from bsd.pkg.mk
addresses PR pkg/19416
2003-02-17 15:27:58 +00:00
heinz
4f03088dbf - Depends on perl >=5.6.0 instead of 5.005_3
- Uses buildlink2 and module.mk now.
- Removed patch-ab (bug fixed is fixed in this version).
2002-10-06 02:37:56 +00:00
heinz
0dbb0b8058 Update to version 0.28. Changes include:
- simple nameserver
- support for TSIG and DNAME resource records
- dynamic updates
- should be compatible with perl 5.005_3
2002-09-09 00:22:22 +00:00
jlam
cc4128d97e Buildlinkify, in the sense that only the perl headers are found in
${PREFIX} -- everything else is pickup up from ${BUILDLINK_DIR}.
2001-11-26 06:49:36 +00:00
zuntum
d038a73ebd Move pkg/ files into package's toplevel directory 2001-10-31 22:52:58 +00:00
veego
63ad910dee SVR4 packages have a limit of 9 chars for a package name.
The automatic truncation in gensolpkg doesn't work for packages which
have the same package name for the first 5-6 chars.
e.g. amanda-server and amanda-client would be named amanda and amanda.
Now, we add a SVR4_PKGNAME and use amacl for amanda-client and amase for
amanda-server.
All svr4 packages also have a vendor tag, so we have to reserve some chars
for this tag, which is normaly 3 or 4 chars. Thats why we can only use 6
or 5 chars for SVR4_PKGNAME. I used 5 for all the packages, to give the
vendor tag enough room.
All p5-* packages and a few other packages have now a SVR4_PKGNAME.
2001-10-18 15:20:01 +00:00
wiz
433b62957e Move to sha1 checksum, and/or add distfile sizes. 2001-04-21 11:23:08 +00:00
agc
2d6b6a009c + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:43:32 +00:00
wiz
a13ea108bb Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-17 17:52:59 +00:00
jlam
18cba9d7fa Convert packages to use PERL5_PACKLIST (part 1). These were the easy
ones to do, and each compiled and installed/de-installed apparently
correctly.

As a side effect of the dynamic PLIST, we no longer need to have separate
-static and -shared PLISTs.  It's now easier than ever to make a perl5
package for NetBSD :)
2000-08-27 07:10:59 +00:00
simonb
8d14e3d97e Remove perllocal.pod as per email from Hubert Feyrer on tech-pkg. 1999-12-20 04:14:23 +00:00
hubertf
10fa40edbb Net::DNS is a Perl interface to the DNS resolver. It allows the
programmer to perform any type of DNS query from a Perl script.
For details and examples, please read the Net::DNS manual page.

As of version 0.02, Net::DNS is written entirely in Perl.  Version
0.01 was written mostly in C and used the system's resolver.  The
Perl version runs quite a bit slower, but considering that the
network can be a serious bottleneck when making DNS queries, the
speed difference may not really matter in most cases.  However,
future versions may contain some C to increase speed or for those
who wish to link against libresolv or libbind.
1999-11-08 01:06:49 +00:00