Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 20, 2025

Bumps pear/net_dns2 from 1.5.4 to 2.0.6.

Release notes

Sourced from pear/net_dns2's releases.

v2.0.6

  • bugfix: fixed #173 - the Client.php was comparing the $rr->type value to "SOA" but should have been using the new ENUM value.
  • changed from mt_rand() to random_int(); provides the same value, but faster and produces less complaints from code scanners about weak RNG, even though it doesn't actually matter since this isn't used for cryptography.
  • realpath() the resolv.conf and private key file path just-in-case; this isn't a real problem.
  • changed the resolver cache to use sha256 instead of md5(); again, this isn't cryptographic, so it doesn't matter, but in my testing the sha256 function is surprisingly slightly faster than md5(), and it kills the complaints from code scanners.
  • dropped the use of curl_close(); it's deprecated as of PHP 8.5.
  • cleaned up the BitMap::arrayToBitMap() function, and created a phpunit test to confirm it's working.
  • changed any isset() cases to use === to avoid "loose comparison" warnings.

v2.0.5

  • bugfix: fixed #169 - the Client.php was comparing the $qtype value to "AXFR" but should have been using the new ENUM value
  • bugfix: fixed #170 - the Socket::read() function could end up in and endless loop when using TCP, and the remote end doesn't return any data at all.
  • bugfix: fixed #171 - added a missing __isset() magic method to the RR object.

v2.0.4

  • fixed the phpdoc for the $_options passed to the Resolver, Notifier, & Updater constructors; the array format was incorrect.

  • fixed the blocking logic in Socket::read(); there were a couple reports of failures here that could only happen in a specific case where only one initial byte of data is returned on TCP connections.

  • fixed #167 - the Mailbox object (used on SOA, RP) RR's didn't support a value without a "." in it (aka an @). While according to RFC1035, this value should be an email address, it seems like DNS servers don't enforce this, so you can add a single value in like "root" and it's accepted.

  • fixed #168 - the SHA1 DNSSEC Digest algorithm was configured as id 0, but should be 1.

v2.0.3

  • fixed #162; the type() was missing when creating a Data\Mailbox type in RR::__set().
  • changed the default $_offset value for Data types to -1 instead of null; it achieves the same goal (an "unset state"), but resolves a few PHPstan complaints.

v2.0.2

  • Added support for Internationalized Domain Names (IDN)
  • Fixed mikepultz/netdns2#160 - the Updater() and Notifier() class constructors were accidentially changed to require a response value; this was changed back to default to null.
  • Fixed mikepultz/netdns2#161 - there was a domain encoding issue related to TSIG signatures, when using key names or algorithms with periods in them. This was part of a larger encoding logic issue.

v2.0.1

  • bugfix: \NetDNS2\RR\PTR::ptrdname was set to private instead of protected #157
  • bugfix: the IPv4 & IPv6 data objects were missing from the \NetDNS2\RR::set() function.
  • bugfix: the Text data object was being referenced incorrectly with a lead \ in \NetDNS2\RR::set().

v2.0.0

IMPORTANT: this release is not backwards compatible with v1.x - see the README for more details on upgrading.

  • Minimum PHP version was increased to 8.1; this version uses strong typing, ENUMs, and other modern PHP features.
  • Complete code re-factor, converting to PSR-4 style autoloading, and namespace semantics.
  • Added support for DNS over TLS (DoT).
  • Added support for DNS over HTTPS (DoH).
  • Added support for (almost) all EDNS(0) features (client subnet, cookies, TCP keepalives, etc.)
  • Added Memcache & Redis support in the local cache object.
  • Added the HTTPS, SVCB, DSYNC, and other resource records.

... (truncated)

Changelog

Sourced from pear/net_dns2's changelog.

v2.0.6

  • bugfix: fixed #173 - the Client.php was comparing the $rr->type value to "SOA" but should have been using the new ENUM value.
  • changed from mt_rand() to random_int(); provides the same value, but faster and produces less complaints from code scanners about weak RNG, even though it doesn't actually matter since this isn't used for cryptography.
  • realpath() the resolv.conf and private key file path just-in-case; this isn't a real problem.
  • changed the resolver cache to use sha256 instead of md5(); again, this isn't cryptographic, so it doesn't matter, but in my testing the sha256 function is surprisingly slightly faster than md5(), and it kills the complaints from code scanners.
  • dropped the use of curl_close(); it's deprecated as of PHP 8.5.
  • cleaned up the BitMap::arrayToBitMap() function, and created a phpunit test to confirm it's working.
  • changed any isset() cases to use === to avoid "loose comparison" warnings.

v2.0.5

  • bugfix: fixed #169 - the Client.php was comparing the $qtype value to "AXFR" but should have been using the new ENUM value
  • bugfix: fixed #170 - the Socket::read() function could end up in and endless loop when using TCP, and the remote end doesn't return any data at all.
  • bugfix: fixed #171 - added a missing __isset() magic method to the RR object.

v2.0.4

  • bugfix: fixed the phpdoc for the $_options passed to the Resolver, Notifier, & Updater constructors; the array format was incorrect.
  • bugfix: fixed the blocking logic in Socket::read(); there were a couple reports of failures here that could only happen in a specific case where only one initial byte of data is returned on TCP connections.
  • bugfix: fixed #167 - the Mailbox object (used on SOA, RP) RR's didn't support a value without a "." in it (aka an @). While according to RFC1035, this value should be an email address, it seems like DNS servers don't enforce this, so you can add a single value in like "root" and it's accepted.
  • bugfix: fixed #168 - the SHA1 DNSSEC Digest algorithm was configured as id 0, but should be 1.

v2.0.3

  • bugfix: fixed #162; the type() was missing when creating a Data\Mailbox type in RR::__set().
  • changed the default $_offset value for Data types to -1 instead of null; it achieves the same goal (an "unset state"), but resolves a few PHPstan complaints.

v2.0.2

  • Added support for Internationalized Domain Names (IDN)
  • bugfix: fixed #160 - the Updater() and Notifier() class constructors were accidentially changed to require a response value; this was changed back to default to null.
  • bugfix: fixed #161 - there was a domain encoding issue related to TSIG signatures, when using key names or algorithms with periods in them. This was part of a larger encoding logic issue.

v2.0.1

  • bugfix: \NetDNS2\RR\PTR::ptrdname was set to private instead of protected #157
  • bugfix: the IPv4 & IPv6 data objects were missing from the \NetDNS2\RR::set() function.
  • bugfix: the Text data object was being referenced incorrectly with a lead \ in \NetDNS2\RR::set().

v2.0.0

... (truncated)

Commits
  • 451841d * bugfix: fixed #173 - the Client.php was comparing the $rr->type value to "S...
  • c7958c5 - changed from mt_rand() to random_int(); provides the same value, but faster...
  • 515b064 - updated the PHPstand workflow
  • e3da5a2 - bugfix: fixed #171 - added a missing __isset() magic method to the RR object.
  • df04947 - fixed #169 - Wrong comparison in Client.php "qtype == 'AXFR'"
  • 9403007 - fixed #168 - the SHA1 DNSSEC Digest algorithm was configured as id 0, but s...
  • d2de4f0 - fixed #167 - the Mailbox object (used on SOA, RP) RR's didn't support a val...
  • 5f8cffe - fixed the phpdoc for the $_options passed to the Resolver, Notifier, & Upda...
  • b9b09b2 Merge pull request #164 from sjwebb/fix-phpstan
  • 97626b8 Fixed PHPStan issue
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pear/net_dns2](https://github.com/mikepultz/netdns2) from 1.5.4 to 2.0.6.
- [Release notes](https://github.com/mikepultz/netdns2/releases)
- [Changelog](https://github.com/mikepultz/netdns2/blob/master/CHANGES)
- [Commits](mikepultz/netdns2@v1.5.4...v2.0.6)

---
updated-dependencies:
- dependency-name: pear/net_dns2
  dependency-version: 2.0.6
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file php Pull requests that update Php code labels Oct 20, 2025
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 24, 2025

Superseded by #361.

@dependabot dependabot bot closed this Nov 24, 2025
@dependabot dependabot bot deleted the dependabot/composer/pear/net_dns2-2.0.6 branch November 24, 2025 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant