후이즈검색 하기 입니다.

· 10년 전 · 1701

<?
$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,632
9년 전 조회 2,007
9년 전 조회 2,059
9년 전 조회 1,813
9년 전 조회 1,644
9년 전 조회 1,689
9년 전 조회 2,041
9년 전 조회 1,648
9년 전 조회 1,901
9년 전 조회 1,722
9년 전 조회 1,840
9년 전 조회 1,701
10년 전 조회 1,964
10년 전 조회 1,657
10년 전 조회 1,635
10년 전 조회 1,628
10년 전 조회 1,719
10년 전 조회 1,659
10년 전 조회 1,679
10년 전 조회 1,811
10년 전 조회 1,598
10년 전 조회 1,603
10년 전 조회 1,655
10년 전 조회 1,774
10년 전 조회 1,616
10년 전 조회 1,736
10년 전 조회 1,537
10년 전 조회 1,623
10년 전 조회 1,433
10년 전 조회 1,668
10년 전 조회 1,460
10년 전 조회 1,509
10년 전 조회 1,620
10년 전 조회 1,518
10년 전 조회 1,557
10년 전 조회 1,485
10년 전 조회 1,889
10년 전 조회 1,911
10년 전 조회 1,896
10년 전 조회 1,864
10년 전 조회 1,648
10년 전 조회 1,763
10년 전 조회 1,941
10년 전 조회 1,642
10년 전 조회 1,924
10년 전 조회 1,895
10년 전 조회 2,271
10년 전 조회 1,886
10년 전 조회 2,096
10년 전 조회 1,702
10년 전 조회 1,875
10년 전 조회 1,567
10년 전 조회 1,644
10년 전 조회 1,688
10년 전 조회 1,686
10년 전 조회 1,861
10년 전 조회 1,619
10년 전 조회 1,653
10년 전 조회 1,659
10년 전 조회 1,565
10년 전 조회 1,624
10년 전 조회 1,437
10년 전 조회 1,516
10년 전 조회 1,429
10년 전 조회 1,587
10년 전 조회 1,533
10년 전 조회 1,997
10년 전 조회 1,458
10년 전 조회 1,431
10년 전 조회 1,694
10년 전 조회 1,490
10년 전 조회 1,457
10년 전 조회 1,466
10년 전 조회 1,423
10년 전 조회 1,355
10년 전 조회 1,322
10년 전 조회 1,448
10년 전 조회 1,415
10년 전 조회 1,370
10년 전 조회 1,253
10년 전 조회 1,338
10년 전 조회 1,345
10년 전 조회 1,358
10년 전 조회 1,403
10년 전 조회 1,393
10년 전 조회 1,334
10년 전 조회 1,342
10년 전 조회 1,395
10년 전 조회 1,363
10년 전 조회 1,453
10년 전 조회 1,358
10년 전 조회 1,316
10년 전 조회 1,288
10년 전 조회 1,308
10년 전 조회 1,319
10년 전 조회 1,315
10년 전 조회 1,337
10년 전 조회 1,289
10년 전 조회 1,338
10년 전 조회 1,285