후이즈검색 하기 입니다.

· 10년 전 · 1709

<?
$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,644
9년 전 조회 2,020
9년 전 조회 2,070
9년 전 조회 1,831
9년 전 조회 1,658
9년 전 조회 1,703
9년 전 조회 2,051
9년 전 조회 1,654
9년 전 조회 1,913
9년 전 조회 1,736
9년 전 조회 1,854
9년 전 조회 1,711
10년 전 조회 1,973
10년 전 조회 1,670
10년 전 조회 1,649
10년 전 조회 1,648
10년 전 조회 1,732
10년 전 조회 1,674
10년 전 조회 1,684
10년 전 조회 1,824
10년 전 조회 1,609
10년 전 조회 1,617
10년 전 조회 1,664
10년 전 조회 1,790
10년 전 조회 1,625
10년 전 조회 1,753
10년 전 조회 1,549
10년 전 조회 1,633
10년 전 조회 1,439
10년 전 조회 1,677
10년 전 조회 1,468
10년 전 조회 1,523
10년 전 조회 1,632
10년 전 조회 1,525
10년 전 조회 1,567
10년 전 조회 1,497
10년 전 조회 1,904
10년 전 조회 1,920
10년 전 조회 1,908
10년 전 조회 1,870
10년 전 조회 1,654
10년 전 조회 1,776
10년 전 조회 1,950
10년 전 조회 1,650
10년 전 조회 1,933
10년 전 조회 1,906
10년 전 조회 2,280
10년 전 조회 1,894
10년 전 조회 2,105
10년 전 조회 1,710
10년 전 조회 1,889
10년 전 조회 1,581
10년 전 조회 1,657
10년 전 조회 1,697
10년 전 조회 1,694
10년 전 조회 1,872
10년 전 조회 1,630
10년 전 조회 1,665
10년 전 조회 1,663
10년 전 조회 1,579
10년 전 조회 1,633
10년 전 조회 1,446
10년 전 조회 1,529
10년 전 조회 1,437
10년 전 조회 1,593
10년 전 조회 1,542
10년 전 조회 2,007
10년 전 조회 1,466
10년 전 조회 1,444
10년 전 조회 1,707
10년 전 조회 1,499
10년 전 조회 1,477
10년 전 조회 1,476
10년 전 조회 1,438
10년 전 조회 1,370
10년 전 조회 1,333
10년 전 조회 1,462
10년 전 조회 1,432
10년 전 조회 1,381
10년 전 조회 1,264
10년 전 조회 1,348
10년 전 조회 1,364
10년 전 조회 1,370
10년 전 조회 1,414
10년 전 조회 1,408
10년 전 조회 1,351
10년 전 조회 1,350
10년 전 조회 1,407
10년 전 조회 1,373
10년 전 조회 1,469
10년 전 조회 1,369
10년 전 조회 1,328
10년 전 조회 1,301
10년 전 조회 1,325
10년 전 조회 1,336
10년 전 조회 1,331
10년 전 조회 1,350
10년 전 조회 1,303
10년 전 조회 1,367
10년 전 조회 1,303