후이즈검색 하기 입니다.

· 10년 전 · 1711

<?
$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,645
9년 전 조회 2,024
9년 전 조회 2,070
9년 전 조회 1,833
9년 전 조회 1,658
9년 전 조회 1,705
9년 전 조회 2,053
9년 전 조회 1,657
9년 전 조회 1,916
9년 전 조회 1,740
9년 전 조회 1,856
9년 전 조회 1,717
10년 전 조회 1,976
10년 전 조회 1,672
10년 전 조회 1,650
10년 전 조회 1,649
10년 전 조회 1,732
10년 전 조회 1,675
10년 전 조회 1,687
10년 전 조회 1,824
10년 전 조회 1,611
10년 전 조회 1,619
10년 전 조회 1,668
10년 전 조회 1,791
10년 전 조회 1,631
10년 전 조회 1,755
10년 전 조회 1,550
10년 전 조회 1,636
10년 전 조회 1,439
10년 전 조회 1,679
10년 전 조회 1,470
10년 전 조회 1,526
10년 전 조회 1,634
10년 전 조회 1,527
10년 전 조회 1,571
10년 전 조회 1,500
10년 전 조회 1,904
10년 전 조회 1,920
10년 전 조회 1,909
10년 전 조회 1,871
10년 전 조회 1,657
10년 전 조회 1,777
10년 전 조회 1,951
10년 전 조회 1,650
10년 전 조회 1,934
10년 전 조회 1,906
10년 전 조회 2,281
10년 전 조회 1,897
10년 전 조회 2,108
10년 전 조회 1,712
10년 전 조회 1,890
10년 전 조회 1,584
10년 전 조회 1,658
10년 전 조회 1,699
10년 전 조회 1,695
10년 전 조회 1,873
10년 전 조회 1,630
10년 전 조회 1,667
10년 전 조회 1,665
10년 전 조회 1,580
10년 전 조회 1,637
10년 전 조회 1,450
10년 전 조회 1,530
10년 전 조회 1,440
10년 전 조회 1,593
10년 전 조회 1,543
10년 전 조회 2,008
10년 전 조회 1,468
10년 전 조회 1,444
10년 전 조회 1,709
10년 전 조회 1,500
10년 전 조회 1,478
10년 전 조회 1,479
10년 전 조회 1,439
10년 전 조회 1,371
10년 전 조회 1,336
10년 전 조회 1,462
10년 전 조회 1,434
10년 전 조회 1,386
10년 전 조회 1,267
10년 전 조회 1,349
10년 전 조회 1,369
10년 전 조회 1,374
10년 전 조회 1,415
10년 전 조회 1,408
10년 전 조회 1,351
10년 전 조회 1,357
10년 전 조회 1,409
10년 전 조회 1,375
10년 전 조회 1,473
10년 전 조회 1,371
10년 전 조회 1,333
10년 전 조회 1,302
10년 전 조회 1,327
10년 전 조회 1,339
10년 전 조회 1,335
10년 전 조회 1,353
10년 전 조회 1,305
10년 전 조회 1,371
10년 전 조회 1,308