후이즈검색 하기 입니다.

· 10년 전 · 1605

<?
$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,521
9년 전 조회 1,929
9년 전 조회 1,972
9년 전 조회 1,710
9년 전 조회 1,574
9년 전 조회 1,623
9년 전 조회 1,967
9년 전 조회 1,560
9년 전 조회 1,789
9년 전 조회 1,626
9년 전 조회 1,724
9년 전 조회 1,592
9년 전 조회 1,854
9년 전 조회 1,559
9년 전 조회 1,529
9년 전 조회 1,497
9년 전 조회 1,608
9년 전 조회 1,541
9년 전 조회 1,591
9년 전 조회 1,697
9년 전 조회 1,503
10년 전 조회 1,516
10년 전 조회 1,533
10년 전 조회 1,660
10년 전 조회 1,513
10년 전 조회 1,617
10년 전 조회 1,445
10년 전 조회 1,524
10년 전 조회 1,344
10년 전 조회 1,569
10년 전 조회 1,378
10년 전 조회 1,408
10년 전 조회 1,514
10년 전 조회 1,414
10년 전 조회 1,447
10년 전 조회 1,379
10년 전 조회 1,792
10년 전 조회 1,822
10년 전 조회 1,792
10년 전 조회 1,745
10년 전 조회 1,522
10년 전 조회 1,657
10년 전 조회 1,823
10년 전 조회 1,531
10년 전 조회 1,822
10년 전 조회 1,788
10년 전 조회 2,166
10년 전 조회 1,775
10년 전 조회 1,976
10년 전 조회 1,606
10년 전 조회 1,744
10년 전 조회 1,458
10년 전 조회 1,519
10년 전 조회 1,579
10년 전 조회 1,568
10년 전 조회 1,722
10년 전 조회 1,488
10년 전 조회 1,519
10년 전 조회 1,497
10년 전 조회 1,431
10년 전 조회 1,490
10년 전 조회 1,310
10년 전 조회 1,376
10년 전 조회 1,290
10년 전 조회 1,436
10년 전 조회 1,376
10년 전 조회 1,849
10년 전 조회 1,322
10년 전 조회 1,291
10년 전 조회 1,550
10년 전 조회 1,361
10년 전 조회 1,340
10년 전 조회 1,335
10년 전 조회 1,271
10년 전 조회 1,206
10년 전 조회 1,188
10년 전 조회 1,289
10년 전 조회 1,283
10년 전 조회 1,216
10년 전 조회 1,113
10년 전 조회 1,192
10년 전 조회 1,173
10년 전 조회 1,194
10년 전 조회 1,248
10년 전 조회 1,249
10년 전 조회 1,188
10년 전 조회 1,191
10년 전 조회 1,236
10년 전 조회 1,209
10년 전 조회 1,282
10년 전 조회 1,200
10년 전 조회 1,153
10년 전 조회 1,137
10년 전 조회 1,154
10년 전 조회 1,133
10년 전 조회 1,156
10년 전 조회 1,174
10년 전 조회 1,147
10년 전 조회 1,204
10년 전 조회 1,138