🍑 The library resolves the address of the nearest server to you by domain name and Your IP address
$ composer require kayw-geek/domain-dns
<?php
use KaywGeek\Dns\Dns;
$myIp = '124.64.165.53';
$domain = 'google.com';
$serverIp = (new Dns($domain,$myIp))->ParsingDomain();
MIT