후이즈검색 하기 입니다.

· 10년 전 · 1635

<?
$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,541
9년 전 조회 1,939
9년 전 조회 1,986
9년 전 조회 1,725
9년 전 조회 1,580
9년 전 조회 1,637
9년 전 조회 1,986
9년 전 조회 1,570
9년 전 조회 1,812
9년 전 조회 1,639
9년 전 조회 1,746
9년 전 조회 1,616
9년 전 조회 1,875
9년 전 조회 1,579
9년 전 조회 1,554
9년 전 조회 1,524
9년 전 조회 1,631
9년 전 조회 1,571
9년 전 조회 1,617
10년 전 조회 1,712
10년 전 조회 1,523
10년 전 조회 1,533
10년 전 조회 1,547
10년 전 조회 1,684
10년 전 조회 1,530
10년 전 조회 1,631
10년 전 조회 1,463
10년 전 조회 1,544
10년 전 조회 1,365
10년 전 조회 1,585
10년 전 조회 1,393
10년 전 조회 1,426
10년 전 조회 1,537
10년 전 조회 1,434
10년 전 조회 1,470
10년 전 조회 1,401
10년 전 조회 1,813
10년 전 조회 1,839
10년 전 조회 1,809
10년 전 조회 1,771
10년 전 조회 1,546
10년 전 조회 1,679
10년 전 조회 1,848
10년 전 조회 1,561
10년 전 조회 1,842
10년 전 조회 1,815
10년 전 조회 2,193
10년 전 조회 1,799
10년 전 조회 1,996
10년 전 조회 1,636
10년 전 조회 1,776
10년 전 조회 1,482
10년 전 조회 1,544
10년 전 조회 1,603
10년 전 조회 1,588
10년 전 조회 1,743
10년 전 조회 1,514
10년 전 조회 1,546
10년 전 조회 1,528
10년 전 조회 1,450
10년 전 조회 1,523
10년 전 조회 1,334
10년 전 조회 1,403
10년 전 조회 1,314
10년 전 조회 1,466
10년 전 조회 1,404
10년 전 조회 1,885
10년 전 조회 1,350
10년 전 조회 1,312
10년 전 조회 1,574
10년 전 조회 1,380
10년 전 조회 1,359
10년 전 조회 1,354
10년 전 조회 1,297
10년 전 조회 1,230
10년 전 조회 1,205
10년 전 조회 1,310
10년 전 조회 1,303
10년 전 조회 1,242
10년 전 조회 1,132
10년 전 조회 1,215
10년 전 조회 1,202
10년 전 조회 1,210
10년 전 조회 1,267
10년 전 조회 1,271
10년 전 조회 1,209
10년 전 조회 1,211
10년 전 조회 1,253
10년 전 조회 1,227
10년 전 조회 1,312
10년 전 조회 1,222
10년 전 조회 1,176
10년 전 조회 1,159
10년 전 조회 1,171
10년 전 조회 1,156
10년 전 조회 1,181
10년 전 조회 1,194
10년 전 조회 1,162
10년 전 조회 1,228
10년 전 조회 1,159