First version of network utilities package was tagged.
It has two helper classes,
IpHelper to work with IPs and network masks, and
DnsHelper to check DNS records.
The package does not depend on Yii and can be used by requiring it via Composer:
composer require yiisoft/network-utilities
Code is well-covered with tests, types and has 100% mutation score.