Arkadaşlar internetten bu kodu buldum değiştirmye çalıştım fonksiyon her çalışdığında farklı bir ip adresi atamak istiyorum ama yapamadım



function getData($domainName, $ext)
{
$proxy = array(
1 => array(
'88.255.101.247',
'8080'
),

2 => array(
'176.53.2.122',
'8080'
),

3 => array(
'37.123.96.237',
'8080'
)

);


shuffle($proxy);



$servers = array(
"biz" => "whois.neulevel.biz",
"com" => "whois.internic.net",
"us" => "whois.nic.us",
"info" => "whois.nic.info",
"name" => "whois.nic.name",
"net" => "whois.internic.net",
"tv" => "whois.nic.tv",
"ru" => "whois.ripn.net",
"org" => "whois.pir.org",

"com.tr" => "whois.nic.tr",
"gen.tr" => "whois.nic.tr",
"web.tr" => "whois.nic.tr",
"k12.tr" => "whois.nic.tr",
"org.tr" => "whois.nic.tr"
);
$serverName = trim($servers[$ext]);
$fullName = $domainName . "." . $ext;


$curl=curl_init();
curl_setopt($curl, CURLOPT_URL, $serverName);
curl_setopt($curl, CURLOPT_PORT, 43);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 5);
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $fullName . "\r\n");
curl_setopt($curl, CURLOPT_PROXY, $proxy[0][0]);
curl_setopt($curl, CURLOPT_PROXYPORT, $proxy[0][1]);

curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
$result = curl_exec($curl);
curl_close($curl);

print_r($result);

}

$veri = getData( "google", "com");

echo htmlspecialchars($veri);