후이즈검색 하기 입니다.

· 10년 전 · 1670

<?
$whois_server = array(
        'com' => 'whois.internic.net',
        'net' => 'whois.internic.net',
        'org' => 'whois.publicinterestregistry.net',
        'co.kr' => 'whois.krnic.net'
);
$whois_avail  = array(
        'whois.internic.net' => 'No match for ',
        'whois.publicinterestregistry.net' => 'NOT FOUND',
        'whois.krnic.net' => 'is not registered to KRNIC'
);

// 도메인 조회 함수
function check_domain( $domain, $suffix ) {
        global $whois_server,$whois_avail;

        $server = $whois_server[$suffix];
        $avail  = $whois_avail[$server];

        // 잘못된 도메인(com,net,org,co.kr이 아닌)
        if (!$server) return false;

        $sock = fsockopen($server,43,$errno,$errstr,30);
        if (!$sock) {
                echo "$errstr [$errno]";
                return false;
        }
        fwrite($sock,"$domain.$suffix\r\n");
        while (!feof($sock)) {
                $ret .= fgets($sock);
        }
    echo $ret;
        fclose($sock);

        if (strstr($ret,$avail)) return true;
        return false;
}

// 조회 도메인이 있다면
if ($domain) {
        echo "<table cellspacing=0 border=1>\n";
        foreach($whois_server as $suffix => $server) {
                $ret = check_domain($domain,$suffix);
                if ($ret)
                        $OX = 'O';
                else
                        $OX = 'X';
                echo " <tr>\n";
                echo "  <td align=right>$domain.$suffix ($OX)</td>\n";
                echo "  <td> 등록 ";
                if (!$ret) echo "불";
                echo "가능</td>\n";
                echo " </tr>\n";
        }
        echo "</table>\n";
}
?>
<br><br><h3>Domain Search</h3>
<hr size=-1>
<form method=post>
Search Domain : <input type=text name=domain value="<?=$domain?>"><input type=submit value="조회">
</form>  

|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
9년 전 조회 1,573
9년 전 조회 1,954
9년 전 조회 2,010
9년 전 조회 1,759
9년 전 조회 1,606
9년 전 조회 1,663
9년 전 조회 2,005
9년 전 조회 1,597
9년 전 조회 1,851
9년 전 조회 1,662
9년 전 조회 1,781
9년 전 조회 1,645
9년 전 조회 1,911
9년 전 조회 1,607
9년 전 조회 1,580
9년 전 조회 1,570
10년 전 조회 1,660
10년 전 조회 1,606
10년 전 조회 1,642
10년 전 조회 1,755
10년 전 조회 1,545
10년 전 조회 1,568
10년 전 조회 1,588
10년 전 조회 1,717
10년 전 조회 1,569
10년 전 조회 1,675
10년 전 조회 1,488
10년 전 조회 1,571
10년 전 조회 1,390
10년 전 조회 1,616
10년 전 조회 1,412
10년 전 조회 1,455
10년 전 조회 1,564
10년 전 조회 1,470
10년 전 조회 1,505
10년 전 조회 1,429
10년 전 조회 1,842
10년 전 조회 1,869
10년 전 조회 1,850
10년 전 조회 1,808
10년 전 조회 1,588
10년 전 조회 1,714
10년 전 조회 1,881
10년 전 조회 1,593
10년 전 조회 1,869
10년 전 조회 1,850
10년 전 조회 2,225
10년 전 조회 1,828
10년 전 조회 2,036
10년 전 조회 1,671
10년 전 조회 1,815
10년 전 조회 1,516
10년 전 조회 1,582
10년 전 조회 1,636
10년 전 조회 1,625
10년 전 조회 1,786
10년 전 조회 1,558
10년 전 조회 1,586
10년 전 조회 1,592
10년 전 조회 1,502
10년 전 조회 1,563
10년 전 조회 1,375
10년 전 조회 1,454
10년 전 조회 1,353
10년 전 조회 1,515
10년 전 조회 1,460
10년 전 조회 1,928
10년 전 조회 1,398
10년 전 조회 1,363
10년 전 조회 1,625
10년 전 조회 1,427
10년 전 조회 1,402
10년 전 조회 1,397
10년 전 조회 1,350
10년 전 조회 1,282
10년 전 조회 1,252
10년 전 조회 1,371
10년 전 조회 1,342
10년 전 조회 1,300
10년 전 조회 1,189
10년 전 조회 1,265
10년 전 조회 1,246
10년 전 조회 1,274
10년 전 조회 1,318
10년 전 조회 1,317
10년 전 조회 1,271
10년 전 조회 1,265
10년 전 조회 1,302
10년 전 조회 1,285
10년 전 조회 1,359
10년 전 조회 1,270
10년 전 조회 1,223
10년 전 조회 1,212
10년 전 조회 1,220
10년 전 조회 1,221
10년 전 조회 1,235
10년 전 조회 1,249
10년 전 조회 1,208
10년 전 조회 1,266
10년 전 조회 1,203