후이즈검색 하기 입니다.

· 10년 전 · 1639

<?
$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,547
9년 전 조회 1,942
9년 전 조회 1,986
9년 전 조회 1,731
9년 전 조회 1,582
9년 전 조회 1,638
9년 전 조회 1,989
9년 전 조회 1,576
9년 전 조회 1,815
9년 전 조회 1,641
9년 전 조회 1,753
9년 전 조회 1,620
9년 전 조회 1,879
9년 전 조회 1,580
9년 전 조회 1,554
9년 전 조회 1,531
9년 전 조회 1,636
9년 전 조회 1,575
9년 전 조회 1,623
10년 전 조회 1,719
10년 전 조회 1,526
10년 전 조회 1,534
10년 전 조회 1,557
10년 전 조회 1,691
10년 전 조회 1,534
10년 전 조회 1,636
10년 전 조회 1,465
10년 전 조회 1,547
10년 전 조회 1,366
10년 전 조회 1,587
10년 전 조회 1,396
10년 전 조회 1,431
10년 전 조회 1,541
10년 전 조회 1,437
10년 전 조회 1,472
10년 전 조회 1,407
10년 전 조회 1,819
10년 전 조회 1,841
10년 전 조회 1,812
10년 전 조회 1,780
10년 전 조회 1,552
10년 전 조회 1,683
10년 전 조회 1,855
10년 전 조회 1,563
10년 전 조회 1,845
10년 전 조회 1,823
10년 전 조회 2,196
10년 전 조회 1,803
10년 전 조회 1,998
10년 전 조회 1,640
10년 전 조회 1,783
10년 전 조회 1,487
10년 전 조회 1,551
10년 전 조회 1,606
10년 전 조회 1,593
10년 전 조회 1,749
10년 전 조회 1,519
10년 전 조회 1,550
10년 전 조회 1,534
10년 전 조회 1,455
10년 전 조회 1,529
10년 전 조회 1,339
10년 전 조회 1,411
10년 전 조회 1,315
10년 전 조회 1,477
10년 전 조회 1,407
10년 전 조회 1,890
10년 전 조회 1,353
10년 전 조회 1,316
10년 전 조회 1,578
10년 전 조회 1,384
10년 전 조회 1,364
10년 전 조회 1,357
10년 전 조회 1,305
10년 전 조회 1,232
10년 전 조회 1,208
10년 전 조회 1,312
10년 전 조회 1,306
10년 전 조회 1,246
10년 전 조회 1,137
10년 전 조회 1,222
10년 전 조회 1,205
10년 전 조회 1,213
10년 전 조회 1,274
10년 전 조회 1,273
10년 전 조회 1,217
10년 전 조회 1,217
10년 전 조회 1,262
10년 전 조회 1,235
10년 전 조회 1,317
10년 전 조회 1,229
10년 전 조회 1,183
10년 전 조회 1,164
10년 전 조회 1,179
10년 전 조회 1,160
10년 전 조회 1,186
10년 전 조회 1,195
10년 전 조회 1,163
10년 전 조회 1,231
10년 전 조회 1,163