후이즈검색 하기 입니다.

· 10년 전 · 1688

<?
$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,594
9년 전 조회 1,975
9년 전 조회 2,032
9년 전 조회 1,783
9년 전 조회 1,619
9년 전 조회 1,670
9년 전 조회 2,021
9년 전 조회 1,623
9년 전 조회 1,874
9년 전 조회 1,677
9년 전 조회 1,801
9년 전 조회 1,670
9년 전 조회 1,934
9년 전 조회 1,633
9년 전 조회 1,601
10년 전 조회 1,601
10년 전 조회 1,687
10년 전 조회 1,630
10년 전 조회 1,659
10년 전 조회 1,772
10년 전 조회 1,571
10년 전 조회 1,583
10년 전 조회 1,621
10년 전 조회 1,745
10년 전 조회 1,589
10년 전 조회 1,707
10년 전 조회 1,512
10년 전 조회 1,596
10년 전 조회 1,412
10년 전 조회 1,636
10년 전 조회 1,434
10년 전 조회 1,483
10년 전 조회 1,587
10년 전 조회 1,489
10년 전 조회 1,522
10년 전 조회 1,453
10년 전 조회 1,866
10년 전 조회 1,884
10년 전 조회 1,868
10년 전 조회 1,836
10년 전 조회 1,614
10년 전 조회 1,737
10년 전 조회 1,907
10년 전 조회 1,616
10년 전 조회 1,890
10년 전 조회 1,875
10년 전 조회 2,248
10년 전 조회 1,851
10년 전 조회 2,060
10년 전 조회 1,689
10년 전 조회 1,840
10년 전 조회 1,539
10년 전 조회 1,610
10년 전 조회 1,661
10년 전 조회 1,656
10년 전 조회 1,823
10년 전 조회 1,589
10년 전 조회 1,609
10년 전 조회 1,625
10년 전 조회 1,539
10년 전 조회 1,587
10년 전 조회 1,403
10년 전 조회 1,480
10년 전 조회 1,392
10년 전 조회 1,549
10년 전 조회 1,481
10년 전 조회 1,958
10년 전 조회 1,418
10년 전 조회 1,403
10년 전 조회 1,653
10년 전 조회 1,457
10년 전 조회 1,431
10년 전 조회 1,434
10년 전 조회 1,380
10년 전 조회 1,314
10년 전 조회 1,290
10년 전 조회 1,406
10년 전 조회 1,375
10년 전 조회 1,329
10년 전 조회 1,216
10년 전 조회 1,299
10년 전 조회 1,296
10년 전 조회 1,317
10년 전 조회 1,354
10년 전 조회 1,355
10년 전 조회 1,301
10년 전 조회 1,299
10년 전 조회 1,340
10년 전 조회 1,322
10년 전 조회 1,404
10년 전 조회 1,315
10년 전 조회 1,268
10년 전 조회 1,251
10년 전 조회 1,263
10년 전 조회 1,269
10년 전 조회 1,273
10년 전 조회 1,290
10년 전 조회 1,242
10년 전 조회 1,306
10년 전 조회 1,233