후이즈검색 하기 입니다.

· 10년 전 · 1662

<?
$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,563
9년 전 조회 1,953
9년 전 조회 2,007
9년 전 조회 1,753
9년 전 조회 1,603
9년 전 조회 1,658
9년 전 조회 2,002
9년 전 조회 1,590
9년 전 조회 1,838
9년 전 조회 1,659
9년 전 조회 1,777
9년 전 조회 1,642
9년 전 조회 1,903
9년 전 조회 1,601
9년 전 조회 1,574
9년 전 조회 1,564
10년 전 조회 1,656
10년 전 조회 1,600
10년 전 조회 1,637
10년 전 조회 1,748
10년 전 조회 1,540
10년 전 조회 1,564
10년 전 조회 1,579
10년 전 조회 1,711
10년 전 조회 1,566
10년 전 조회 1,666
10년 전 조회 1,485
10년 전 조회 1,568
10년 전 조회 1,386
10년 전 조회 1,609
10년 전 조회 1,409
10년 전 조회 1,453
10년 전 조회 1,561
10년 전 조회 1,462
10년 전 조회 1,498
10년 전 조회 1,426
10년 전 조회 1,839
10년 전 조회 1,865
10년 전 조회 1,842
10년 전 조회 1,799
10년 전 조회 1,579
10년 전 조회 1,705
10년 전 조회 1,874
10년 전 조회 1,588
10년 전 조회 1,862
10년 전 조회 1,847
10년 전 조회 2,217
10년 전 조회 1,821
10년 전 조회 2,029
10년 전 조회 1,663
10년 전 조회 1,810
10년 전 조회 1,512
10년 전 조회 1,576
10년 전 조회 1,632
10년 전 조회 1,614
10년 전 조회 1,780
10년 전 조회 1,549
10년 전 조회 1,581
10년 전 조회 1,581
10년 전 조회 1,495
10년 전 조회 1,556
10년 전 조회 1,368
10년 전 조회 1,446
10년 전 조회 1,342
10년 전 조회 1,503
10년 전 조회 1,450
10년 전 조회 1,922
10년 전 조회 1,385
10년 전 조회 1,353
10년 전 조회 1,614
10년 전 조회 1,417
10년 전 조회 1,393
10년 전 조회 1,385
10년 전 조회 1,335
10년 전 조회 1,266
10년 전 조회 1,243
10년 전 조회 1,360
10년 전 조회 1,332
10년 전 조회 1,284
10년 전 조회 1,176
10년 전 조회 1,255
10년 전 조회 1,233
10년 전 조회 1,255
10년 전 조회 1,311
10년 전 조회 1,310
10년 전 조회 1,258
10년 전 조회 1,251
10년 전 조회 1,295
10년 전 조회 1,274
10년 전 조회 1,350
10년 전 조회 1,260
10년 전 조회 1,213
10년 전 조회 1,200
10년 전 조회 1,211
10년 전 조회 1,206
10년 전 조회 1,220
10년 전 조회 1,232
10년 전 조회 1,192
10년 전 조회 1,255
10년 전 조회 1,195