후이즈검색 하기 입니다.

· 10년 전 · 1646

<?
$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,943
9년 전 조회 1,993
9년 전 조회 1,736
9년 전 조회 1,587
9년 전 조회 1,641
9년 전 조회 1,989
9년 전 조회 1,581
9년 전 조회 1,823
9년 전 조회 1,646
9년 전 조회 1,761
9년 전 조회 1,623
9년 전 조회 1,887
9년 전 조회 1,583
9년 전 조회 1,559
9년 전 조회 1,538
9년 전 조회 1,642
9년 전 조회 1,581
9년 전 조회 1,626
10년 전 조회 1,724
10년 전 조회 1,531
10년 전 조회 1,545
10년 전 조회 1,562
10년 전 조회 1,697
10년 전 조회 1,541
10년 전 조회 1,646
10년 전 조회 1,469
10년 전 조회 1,550
10년 전 조회 1,371
10년 전 조회 1,590
10년 전 조회 1,398
10년 전 조회 1,433
10년 전 조회 1,550
10년 전 조회 1,439
10년 전 조회 1,475
10년 전 조회 1,412
10년 전 조회 1,825
10년 전 조회 1,849
10년 전 조회 1,820
10년 전 조회 1,786
10년 전 조회 1,559
10년 전 조회 1,690
10년 전 조회 1,859
10년 전 조회 1,567
10년 전 조회 1,849
10년 전 조회 1,825
10년 전 조회 2,197
10년 전 조회 1,805
10년 전 조회 2,003
10년 전 조회 1,647
10년 전 조회 1,787
10년 전 조회 1,492
10년 전 조회 1,558
10년 전 조회 1,613
10년 전 조회 1,596
10년 전 조회 1,754
10년 전 조회 1,524
10년 전 조회 1,555
10년 전 조회 1,543
10년 전 조회 1,464
10년 전 조회 1,535
10년 전 조회 1,344
10년 전 조회 1,418
10년 전 조회 1,322
10년 전 조회 1,478
10년 전 조회 1,417
10년 전 조회 1,892
10년 전 조회 1,358
10년 전 조회 1,328
10년 전 조회 1,585
10년 전 조회 1,397
10년 전 조회 1,368
10년 전 조회 1,361
10년 전 조회 1,310
10년 전 조회 1,235
10년 전 조회 1,216
10년 전 조회 1,321
10년 전 조회 1,314
10년 전 조회 1,251
10년 전 조회 1,143
10년 전 조회 1,228
10년 전 조회 1,212
10년 전 조회 1,222
10년 전 조회 1,278
10년 전 조회 1,278
10년 전 조회 1,224
10년 전 조회 1,224
10년 전 조회 1,269
10년 전 조회 1,242
10년 전 조회 1,324
10년 전 조회 1,238
10년 전 조회 1,188
10년 전 조회 1,177
10년 전 조회 1,181
10년 전 조회 1,166
10년 전 조회 1,189
10년 전 조회 1,200
10년 전 조회 1,167
10년 전 조회 1,236
10년 전 조회 1,166